https://github.com/maksim-tolo/telegram-contest-app
Simple charting library written from scratch in pure javascript.
https://github.com/maksim-tolo/telegram-contest-app
chart pure-javascript svg telegram visualization
Last synced: 12 months ago
JSON representation
Simple charting library written from scratch in pure javascript.
- Host: GitHub
- URL: https://github.com/maksim-tolo/telegram-contest-app
- Owner: maksim-tolo
- Created: 2019-03-19T06:40:38.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-05-16T21:21:18.000Z (about 7 years ago)
- Last Synced: 2025-03-01T00:24:26.219Z (over 1 year ago)
- Topics: chart, pure-javascript, svg, telegram, visualization
- Language: JavaScript
- Homepage: https://telegram-contest-maksim-tolo.firebaseapp.com
- Size: 272 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# telegram-contest-app
The goal was to develop software for showing simple charts based on input data Telegram provide.
All the code was written from scratch without using specialized charting libraries.
`./src/chart-data.json` file is used as input data for the 5 charts. It contains a vector of JSON objects ('chart'), each representing a separate graph.
`chart.columns` – List of all data columns in the chart. Each column has its label at position 0, followed by values.
x values are UNIX timestamps in milliseconds.
`chart.types` – Chart types for each of the columns. Supported values:
"line" (line on the graph with linear interpolation),
"x" (x axis values for each of the charts at the corresponding positions).
`chart.colors` – Color for each line in 6-hex-digit format (e.g. "#AAAAAA").
`chart.names` – Names for each line.