|
|
|
Forum Newbie
      
Group: Forum Members
Last Login: 6/25/2008 6:27:49 AM
Posts: 4,
Visits: 18
|
|
Greetings to everyone and thank you for your great work!
I am using FusionChart free to show different data, but all of them refers to the same "dimension", same kind of data.
I am using MSColumn2DLineDY type where right axis (secondary) refers to my main data and the left axis (primary) refers to the less important ones (I need lines for main data).
Nevertheless I would like the two scales to vary together in the same way, to show the same number.
In the pic you can see data are not easy to understand and it seems yellow columns are more important than red or grey lines.
While looking at values it is just the opposite, considering they are referring to the same kind of data.
Do you have any kind of suggestion on how to lock together the two scales?
Thank you very much for you attention
EMA
Make it happen!
|
|
|
|
|
FusionCharts Team
      
Group: Administrators
Last Login: Yesterday @ 8:20:12 AM
Posts: 2,194,
Visits: 521
|
|
You can manually set the min/max of both scales using [chart PYAxisMinValue='xx' PYAxisMaxValue='xx' SYAxisMinValue='yy' SYAxisMaxValue='']
Thanks, Pallav Nadhani FusionCharts Team
|
|
|
|
|
Forum Newbie
      
Group: Forum Members
Last Login: 6/25/2008 6:27:49 AM
Posts: 4,
Visits: 18
|
|
Thank you Pallav for your fast reply.
I already tried setting min and max value for both Y axis and this solved problems with NaN values and infinite long columns.
I use PHP class for my graph
$strParam="xAxisName=Months;pyAxisName=Values;
PYAxisMinValue=0;PYAxisMaxValue=10;
SYAxisMinValue=0;SYAxisMaxValue=10;
animation=0;decimalPrecision=0;showValues=0;chartTopMargin=15;
formatNumberScale=0;showNames=1;canvasBorderThickness=0;canvasBgColor=" . self::$COLOR_BACKGROUND;
$chart->setChartParams($strParam);
My actual problem is that values on Secondary Axis is supposed to become bigger than Primary Axis ones, probably twice or three times more.
I need the two scales to be in the same unit, even if data of secondary one are bigger and bigger.
I am using Dual Y graph to take advantage of its graphicals properties.
Right now I am thinking to set PYAxisMaxValue "dinamically", after reading data from DB.
But still I don't know how to set it exactly as SYAxisMaxValue, at each moment.... (probably, this one dinamic as well... why not? )
Thank you all very much for your help and attention
EMA
Make it happen!
|
|
|
|
|
Forum Newbie
      
Group: Forum Members
Last Login: 6/25/2008 6:27:49 AM
Posts: 4,
Visits: 18
|
|
I found a temporary solution.
As I was thinking, first of all I check which of my values is the biggest.
That I set that value as the max value for both the Y Axis, in this way even if graph varies dinamically I can keep the two units locked together.
I don't know whether this solution is the best or not, but for me it works perfectly.
Thank you all, see you soon!
EMA
Make it happen!
|
|
|
|