What is the relevant to the AxisRect().Top in html ?

TeeChart for JavaScript for the HTML5 Canvas
Post Reply
aaron
Newbie
Newbie
Posts: 30
Joined: Mon Apr 17, 2023 12:00 am

What is the relevant to the AxisRect().Top in html ?

Post by aaron » Tue Apr 25, 2023 1:50 pm

Code: Select all

int y1 = TChart.Axes.Left.AxisRect().Top;
int y2 = TChart.Axes.Bottom.AxisRect().Top;

Marc
Site Admin
Site Admin
Posts: 1266
Joined: Thu Oct 16, 2003 4:00 am
Location: Girona
Contact:

Re: What is the relevant to the AxisRect().Top in html ?

Post by Marc » Tue Apr 25, 2023 3:15 pm

Hello,

You can get what you need I think, from:

Code: Select all

Chart1.chartRect
See use of ChartRect here as an argument for clipping:

https://www.steema.com/files/public/tee ... ighlow.htm

Regards,
Marc Meumann
Steema Support

aaron
Newbie
Newbie
Posts: 30
Joined: Mon Apr 17, 2023 12:00 am

Re: What is the relevant to the AxisRect().Top in html ?

Post by aaron » Thu Apr 27, 2023 5:25 pm

Hello, this is not the right answer.

If I want to top off the axis value then, what should I do with the chart-level props?

the correct approch is :

Code: Select all

 this.TChart.axes.bottom.startPos

aaron
Newbie
Newbie
Posts: 30
Joined: Mon Apr 17, 2023 12:00 am

Re: What is the relevant to the AxisRect().Top in html ?

Post by aaron » Thu Apr 27, 2023 5:25 pm

Hello, this is not the right answer.

If I want to top off the axis value then, what should I do with the chart-level props?

the correct approch is :

Code: Select all

 this.TChart.axes.bottom.startPos

Post Reply