Other TeeChart implementations have a method to set the automaticMinimum / automaticMaximum for axis objects independently.
Is there a way to do this in the Javascript/HTML5 version?
Otherwise I'll try and do it from the data!
Kind regards
Mark
Automatic Minimum/Maximum for Axes
Re: Automatic Minimum/Maximum for Axes
Hello Mark,
There's the automatic property for the axes, and the checkMinMax function to force recalculate the axis range. Ie:
There's the automatic property for the axes, and the checkMinMax function to force recalculate the axis range. Ie:
Code: Select all
Chart1.axes.bottom.automatic=true;
Chart1.axes.bottom.checkMinMax();
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
Re: Automatic Minimum/Maximum for Axes
But can one have an automatic maximum, and a fixed minimum, ie:
chart1.axes.left.automaticMaximum=True;
chart1.axes.left.automaticMinimum=False;
chart1.axes.left.minimum=0;
This way (as with Teechart VCL and PHP) the minimum is always zero, whereas the maximum will scale with the data.
Mark
chart1.axes.left.automaticMaximum=True;
chart1.axes.left.automaticMinimum=False;
chart1.axes.left.minimum=0;
This way (as with Teechart VCL and PHP) the minimum is always zero, whereas the maximum will scale with the data.
Mark
Re: Automatic Minimum/Maximum for Axes
Hi Mark,
Excuse me, I didn't understand that point.
I'll add it to the public tracker:
http://bugs.teechart.net/show_bug.cgi?id=795
Feel free to add your mail to the CC list to be automatically notified when an update arrives.
At the moment, checkMinMax function does this:
You can override it to have a fix minimum=0. Ie:
Excuse me, I didn't understand that point.
I'll add it to the public tracker:
http://bugs.teechart.net/show_bug.cgi?id=795
Feel free to add your mail to the CC list to be automatically notified when an update arrives.
At the moment, checkMinMax function does this:
Code: Select all
this.checkMinMax=function() {
var s=this.chart.series, h=this.horizontal;
if (this.automatic) {
this.minimum= h ? s.minXValue(this) : s.minYValue(this);
this.maximum= h ? s.maxXValue(this) : s.maxYValue(this);
}
}
Code: Select all
Chart1.axes.left.checkMinMax=function() {
var s=this.chart.series, h=this.horizontal;
if (this.automatic) {
this.minimum=0;
this.maximum= h ? s.maxXValue(this) : s.maxYValue(this);
}
}
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |