Steema Issues Database

Note: This database is for bugs and wishes only. For technical support help, if you are a customer please visit our online forums;
otherwise you can use StackOverflow.
Before using this bug-tracker we recommend a look at this document, Steema Bug Fixing Policy.



Bug 795

Summary: Automatic Minimum/Maximum for Axes
Product: HTML5 JavaScript TeeChart Reporter: yeray alonso <yeray>
Component: AxesAssignee: Steema Issue Manager <issuemanager>
Status: CONFIRMED ---    
Severity: enhancement CC: mark.jonas
Priority: Lowest    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows   
URL: http://www.teechart.net/support/viewtopic.php?f=18&t=14972&p=66355#p66355
Chart Series: --- Delphi / C++ Builder RAD IDE Version:

Description yeray alonso 2014-06-11 06:18:22 EDT
Other TeeChart implementations have a method to set the automaticMinimum / automaticMaximum for axis objects independently.

In TeeChart HTML5/Javascript, as a workaround, you can override checkMinMax function to have a fixed minimum=0, keeping the maximum automatic. Ie:

  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);
    }
  }

But automaticMin and automaticMax properties would be helpful.