Specify the xaxispos

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 Matze on 14th December 2013
Hi,

now, I've another problem.
My temperature chart could sometimes have positive and negative values (e.g. 7°C and -2°C). But the x-axis always should be at 0°C. This is possible with xaxispos=center.
This works fine, but the problem is, that the minimum value is always the same like the maximum value (only with a minus in front of the value).
So in this example, the y-axis reches from -10°C to +10°C. I want to have the y-axis from -5°C to +10°C. The x-axis should stay at 0°C.
Or if the temperatur is +30°C, the y-axis starts at -30°C, but then it should start at 0°C.

How is this possible?

Thanks for your help!
Matze
Posted by RGraph support on 15th December 2013
Hi there,

It's not natively supported but can be achieved and these demos demonstrate it:

And you may be particularly interested this one, which is a bit more complicated, but is a dual color chart:

www.rgraph.net/demos/line-quarter-axis2.html
www.rgraph.net/demos/line-quarter-axis.html

www.rgraph.net/demos/line-quarter-axis-dual-color.html



Richard

Add a reply




« Back to message list