|
|
|
Forum 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
|
|
|
|
|
FusionCharts 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
|
|
|
|
|
Forum 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
|
|
|
|