Chartview Cartesian area size

1 Answer 29 Views
ChartView
Fabrice
Top achievements
Rank 2
Iron
Fabrice asked on 03 Nov 2023, 04:59 PM

Hi,

I would like to know how to get the size of the cartesian area (red square above).

I tried with radspy to get the right element, but there is no size set, everything is "0,0", any idea?

Thanks in advance

1 Answer, 1 is accepted

Sort by
0
Accepted
Nadya | Tech Support Engineer
Telerik team
answered on 06 Nov 2023, 12:14 PM

Hello, Fabrice,

You can get the LayoutSlot for the PlotArea in the following way after the BarSeries is loaded:

private void radButton1_Click(object sender, EventArgs e)
{
    RadRect rect = this.radChartView1.View.Area.AreaModel.PlotArea.LayoutSlot;
}

I hope this helps. Let me know if you have any other questions.

Regards,
Nadya
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Fabrice
Top achievements
Rank 2
Iron
commented on 06 Nov 2023, 03:43 PM

This is working as expected!

Thanks

Tags
ChartView
Asked by
Fabrice
Top achievements
Rank 2
Iron
Answers by
Nadya | Tech Support Engineer
Telerik team
Share this question
or