Y axis with a scale of 200

Share RGraph:   Share or Like RGraph on Facebook!

« Back to message list

Enter your email address to get email updates on this topic. You can stop receiving updates by clicking the link in the update email messages.

Posted by jlost55 on 10th April 2014
Hello,

Is it possible to make a y-axis with a scale of 200. (200,400,600,...)

Now it makes a scale of 240. (240, 480, 720, ...) .

I have a line chart.

Sorry for my bad English

Thanks
Posted by Richard on 10th April 2014
Hi there,

Yes. You could do this (5 labels):

obj.set('ymax', 1000)

Or this:

obj.set('ymax', 2400)
obj.set('ylabels.count', 10)

Or this:

obj.set('ymax', 1200)



Richard
Posted by jlost55 on 10th April 2014
I was forget to say that my chart has always a ymax of 1200.

When I change my ymax to 1000 it will count with 200,400,600, 800, 1000.

But I will 200,400,600,800,1000 and 1200. When I change my ymax on 1200. It will count with 120.
Posted by Richard on 10th April 2014
Hi there,


In that case you could do this:

obj.set('ymax', 1200)
obj.set('ylabels.count', 6)

And you should get labels of 200,400,600,800,1000,1200.



Richard
Posted by jlost55 on 10th April 2014
Hello Richard,

it works!

Very thanks for the information!!!

Add a reply




« Back to message list