Page 1 of 1

Set minimum start value for x axis

Posted: Mon May 01, 2017 1:36 pm
by 17780715
Hi

Using the volume demo, I am trying to change the start value for the X axis.

I've tried:
Chart1.getAxes().getLeft().setAutomatic(false);
Chart1.getAxes().getLeft().setMaximum(150);
Chart1.getAxes().getLeft().setMinimum(76);

but these functions/properties are not available for volume charts?

I've tried setMaxMin but that still gives a start value at 0 and a maximum 150?

If I only want to show the x-axis range from 76 to 150. How would I do that?

Thanks in advance.

Re: Set minimum start value for x axis

Posted: Tue May 02, 2017 8:03 am
by yeray
Hello,

First of all note the x axis is the bottom axis, not the left axis.
Then, note there aren't getters and setters in TeeChart Javascript/HTML5.

This should work:

Code: Select all

Chart1.axes.bottom.setMinMax(76,150);