Guest User

Untitled

a guest
Sep 21st, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. ```javascript
  2. var data = {
  3. a: [1,2,3,2,2,3,4,5,6],
  4. b: [5,3,2,3,5,null,2,1,1,2]
  5. };
  6.  
  7. linechart.create({
  8. container: '#chart',
  9. size: [500,300],
  10. data: data, // lots of numbers
  11. labels: { a: 'Foo', b: 'Bar' }, // give the data rows some meaning
  12. format: function(n) { return n+'%' } // define how numbers look on axis and tooltips
  13. })
  14.  
  15. ```
Add Comment
Please, Sign In to add comment