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 - Automatic Minimum/Maximum for Axes
Summary: Automatic Minimum/Maximum for Axes
Status: CONFIRMED
Alias: None
Product: HTML5 JavaScript TeeChart
Classification: Unclassified
Component: Axes (show other bugs)
Version: unspecified
Hardware: PC Windows
: Lowest enhancement
Target Milestone: ---
Assignee: Steema Issue Manager
URL: http://www.teechart.net/support/viewt...
Keywords:
Depends on:
Blocks:
 
Reported: 2014-06-11 06:18 EDT by yeray alonso
Modified: 2014-06-11 06:53 EDT (History)
1 user (show)

See Also:
Chart Series: ---
Delphi / C++ Builder RAD IDE Version:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.