Y axis position on Scatter chart


« 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 Paul on 26th September 2013
Hello again, impressed with RGraph and finding it really useful. However, I have a question:

I need to plot a scatter graph with an X range from -100 to 100. I would like the Y axis to therefore be positioned in the centre of the graph (i.e. where X = 0), but can't seem to find a way to do this. Is it possible? There only seem to options to position the Y axis on the left or right of the graph. Is there a way around this?

Thanks and all the best,
Paul
Posted by RGraph support on 27th September 2013
Hi there,

You never used to be able todo that - and RGraph still doesn't 'oficially' have an option for it. But here's a quick example that I came up with using the (relatively) new XAxis drawing API object:

www.rgraph.net/fiddle/view/scatter-chart


Richard, RGraph Support
Please remember to link to the RGraph website

Help support RGraph - single site license only £99
   www.rgraph.net/license#single-site
Posted by Enter your name... on 29th September 2013
Many thanks for that Richard, much appreciated. Do you have any plans to add the functionality directly to the core graphs by any chance? Kind regards, Paul
Posted by RGraph support on 30th September 2013
Hi there,

Not to add it to the core library no - but now that I'v made that I've got my mind set on adding a couple of demos so that it's easier for people to get it up and running. One like the demo I showed you and one with the X axis in the center.


Richard, RGraph Support
Please remember to link to the RGraph website

Help support RGraph - single site license only £99
   www.rgraph.net/license#single-site

Add a reply

 




« Back to message list
RGraph on social media