0

I am playing around with this example of a line graph using larger data values, e.g.

var data = [3567, 6643, 2123, 1447, 1245, 2414]

and the y axis isn't starting at 0, instead of 1245. Was wondering if there was a simple way to alter this.

Baz
  • 36,440
  • 11
  • 68
  • 94
a-windett
  • 151
  • 1
  • 7
  • The y axis should start at 0 with the code you've linked to. – Lars Kotthoff Sep 10 '14 at 13:34
  • Here's a fiddle with the example code and your data: http://jsfiddle.net/henbox/9qz9mgmv/1/ . The y axis starts at 0 (the only other change from the original example is to add an `extramargin` variable so you can see the y-axis tick values). What are you seeing? – Henry S Sep 10 '14 at 18:40
  • Yeah, thats fixed it. Wasn't so fussed about the ticks. but works great. thanks – a-windett Sep 10 '14 at 20:16

0 Answers0