Sparkline - incorrect scale with target line?
FusionCharts Forum
Home       Members    Calendar    Who's On
Welcome Guest ( Login | Register )
        



Sparkline - incorrect scale with target line?... Expand / Collapse
Author
Message
Posted 12/21/2007 6:10:44 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 1/2/2008 11:37:12 AM
Posts: 5, Visits: 9
I am generating a sparkline with a target line. The target line represents a limit that the values are not supposed to breach. It's fine if any of the values "cross" the target line, but if not - as below - the scale for the chart is not automatically chosen to show the target line...

I think I can workaround by checking for the largest value and setting yAxisMaxValue...

Bug?

Thanks

John
Post #3447
Posted 12/21/2007 1:45:38 PM
FusionCharts Team

FusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts Team

Group: Administrators
Last Login: 10/3/2008 2:42:18 AM
Posts: 2,117, Visits: 498
The limits for a chart are calculated based on its values, as the values are predominant figures of the chart.

If you've a trendline which is bigger than any value, you can just set [chart yAxisMaxValue='value of trendline'].

In this case, the trendline always shows up, irrespective of any value. And, if the value is greater than the y-axis max value, the axis limit is automatically adjusted to a new value.


Thanks,
Pallav Nadhani
FusionCharts Team
Post #3482
Posted 12/24/2007 5:39:01 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 1/2/2008 11:37:12 AM
Posts: 5, Visits: 9
OK - I'll do that.

Just thought that a trendline ought to be taken into account when auto-setting the axis values.

As you say I can easily loop through the data and check myself...

Thanks

John
Post #3512
« Prev Topic | Next Topic »


Permissions Expand / Collapse

All times are GMT -7:00, Time now is 11:38pm


Execution: 0.047.