Coder Social home page Coder Social logo

vote-time's Introduction

vote-time

An interactive pie chart graph built using vanilla JS and the capabilities of SVG dash properties. For each of the buttons at the bottom of the screen, clicking on the respective colour will cause the graph to update in real time with a smooth animation. This project taught me about some interesting edge cases with regards to how different browsers handle SVG animation. It is currently hosted on Github Pages and is deployed using a Github actions .yaml script. The score can be tracked via a connection to a Firebase database instance, however this feature is currently kept offline. A feature that I would like to implement is the ability for multiple users to modify the score in real time, however this will require more research into the best way to queue a large number of requests as well as possibly handling debouncing.

Hosted live here: https://wmattwood.github.io/vote-time/

NOTE: Usage on iOS is reported to be choppy - it looks better on other browsers! This is something I am working on, however it may require a completely different implementation of the pie chart rendering logic... tbd.

vote-time.mov

Changelog

v0.4

  • Temporarily rolling back database features while searching for a more performant animation logic.
  • Added a new video demo

v0.3

  • Added a timer
  • Added automatic anonymous firebase signin to each unique session
  • All sessions are now reactive to the database 'single source of truth'
  • Values reset every 30 seconds.

v0.2

  • Pie chart now looks way cooler - changed colors and added a lighting effect.

v0.1

  • Pie chart displays and reacts in real time! Neat.

vote-time's People

Contributors

wmattwood avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.