https://github.com/nefe/taco
taco-charts
https://github.com/nefe/taco
charts
Last synced: 14 days ago
JSON representation
taco-charts
- Host: GitHub
- URL: https://github.com/nefe/taco
- Owner: nefe
- Created: 2017-11-25T06:41:27.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2023-01-29T01:53:11.000Z (about 2 years ago)
- Last Synced: 2023-03-02T01:23:12.391Z (about 2 years ago)
- Topics: charts
- Language: TypeScript
- Homepage: https://nefe.github.io/Taco/
- Size: 203 KB
- Stars: 16
- Watchers: 4
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
![]()
Taco Charts
## How to start
`npm start` launches a server, Navigate to
[localhost:5000](http://localhost:5000).#### Usage
```js
const data = {
labels: [
'12am-3am',
'3am-6pm',
'6am-9am',
'9am-12am',
'12pm-3pm',
'3pm-6pm',
'6pm-9pm',
'9am-12am'
],
datasets: [
{
title: 'Some Data',
values: [25, 40, 30, 35, 8, 52, 17, -4]
},
{
title: 'Another Set',
values: [25, 50, -10, 15, 18, 32, 27, 14]
}
]
};const chart = new Chart({
parent: '#chart', // or a DOM element
title: 'My Chart',
data: data,
type: 'bar', // or 'line', 'scatter', 'pie', 'percentage'
height: 250,colors: ['#7cd6fd', '#743ee2']
});
```## License
MIT