An open API service indexing awesome lists of open source software.

https://github.com/nefe/taco

taco-charts
https://github.com/nefe/taco

charts

Last synced: 14 days ago
JSON representation

taco-charts

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