Is there any way to lock together Y scales in MS graphs?
FusionCharts Forum
Home       Members    Calendar    Who's On
Welcome Guest ( Login | Register )
        



Is there any way to lock together Y scales in... Expand / Collapse
Author
Message
Posted 2/20/2008 10:08:57 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum 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!

  Post Attachments 
MS_scales.jpg (5 views, 17.70 KB)
Post #4603
Posted 2/21/2008 4:08:11 AM
FusionCharts Team

FusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts 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
Post #4637
Posted 2/21/2008 8:10:51 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum 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!
Post #4662
Posted 2/21/2008 9:13:41 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum 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!
Post #4664
« Prev Topic | Next Topic »


Permissions Expand / Collapse

All times are GMT -7:00, Time now is 5:55pm


Execution: 0.094.