How to sett chart property if my data have negative value?


« 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 mars on 10th January 2013
HI,

how to setting chart property if my data array have negative value?
if i do not set 'chart.xaxispos', how can i setting?

or how to disable the warning alert when data array hava negative value?

Posted by RGraph support on 10th January 2013
Hi,

You can either set chart.xaxispos to center:

obj.Set('chart.xaxispos', 'center');

Or go through your data checking for values less than zero - and set them to zero.

Richard, RGraph Support
Posted by jack yang on 12th March 2013
I came across the same problem. And I don't want to use code like:
obj.Set('chart.xaxispos', 'center');

I used myLine.Set("chart.ymin", -10), hoped to get what I want.

It showed like what I imagined. But it still alert:
"You have negative values and the X axis is at the bottom."

Any other way?
Posted by RGraph support on 13th March 2013
Hi there,

The ymin value does not stipulate the lower value when the X axis is in the center - the values are simply mirrored.

PS Could you link to the RGraph website - thanks.

Richard, RGraph Support

1 Year Priority Support now reduced to £299:
   www.rgraph.net/support
Posted by negative value and pop up messag on 9th January 2014
Hi there,

Like jack yang on 12th March 2013, I need to draw a graph with a custom ymin value (with the chart.ymin setting) and I don't want to set the X axis in the center.

How to disable the alert : You have negative values and the X axis is at the bottom ?

Thanx,
Posted by Richard on 9th January 2014
Hi there,

You can set outofbounds to true.



Richard, RGraph Support
www.rgraph.net
Please link to the RGraph website

Add a reply

 




« Back to message list
RGraph on social media