Set minimum start value for x axis

TeeChart for JavaScript for the HTML5 Canvas
Post Reply
myTeeChart219
Newbie
Newbie
Posts: 6
Joined: Tue Apr 11, 2017 12:00 am

Set minimum start value for x axis

Post by myTeeChart219 » Mon May 01, 2017 1:36 pm

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.

Yeray
Site Admin
Site Admin
Posts: 9514
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Set minimum start value for x axis

Post by Yeray » Tue May 02, 2017 8:03 am

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);
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply