Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ```javascript
- var data = {
- a: [1,2,3,2,2,3,4,5,6],
- b: [5,3,2,3,5,null,2,1,1,2]
- };
- linechart.create({
- container: '#chart',
- size: [500,300],
- data: data, // lots of numbers
- labels: { a: 'Foo', b: 'Bar' }, // give the data rows some meaning
- format: function(n) { return n+'%' } // define how numbers look on axis and tooltips
- })
- ```
Add Comment
Please, Sign In to add comment