Giter Site home page Giter Site logo

terehinav / telegram-chart Goto Github PK

View Code? Open in Web Editor NEW

This project forked from finesse/telegram-chart

0.0 0.0 0.0 4.87 MB

๐ŸŽ– A prize winning JS solution for the Telegram April 2019 coding contest

Home Page: http://finesse.github.io/telegram-chart

JavaScript 96.01% CSS 3.63% HTML 0.36%

telegram-chart's Introduction

Telegram chart

This is a JS solution for the Telegram April 2019 coding contest. The goal was to develop an application for showing charts based on the input data and the design specification. The solution is implemented without the bonus goals.

The solution page on the official contest platform: http://contest.dev/chart-js/entry18

This code was refactored and improved at https://github.com/fingerprintjs/audio-fingerprint-article-demos

How to start the application

First install the application:

  1. Make sure you have Node.js installed
  2. Download the source code
  3. Open a terminal and go to the source code directory
  4. Run npm install

Development mode

  1. Run npm start
  2. Open http://localhost:8000 in a browser

Production mode

  1. Run npm run build
  2. Open the dist/index.html file in a browser

If you want to serve the application with a web server, upload the content of the dist directory to the web server and make the directory be the document root of the server.

Architecture concepts

I've chosen canvas to draw the charts because it's the best approach in terms of performance and reliability. The DOM is manipulated using a pure JS to make it fast and the code small.

The chart supports multiple touches.

The source code is compiled to the distributive code using Webpack and Babel.

telegram-chart's People

Contributors

finesse 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.