Width of the chart area

A forum dedicated to WPF version of LightningChart Ultimate.

Moderator: Queue Moderators

Post Reply
Siike_
Posts: 1
Joined: Wed Jun 22, 2016 8:27 pm

Width of the chart area

Post by Siike_ » Wed Jun 22, 2016 8:29 pm

Is there a way to get the width of the chart area or X axis in pixels?

ahe
Posts: 51
Joined: Tue Aug 11, 2015 4:33 pm
Location: Düsseldorf, DE

Re: Width of the chart area

Post by ahe » Thu Jun 23, 2016 7:40 am

Shouldn't it be something like this?

Code: Select all

LightningChartsUltimate lcu;
var margins = lcu.ViewXY.GetMarginsRect();
var chartAreaSize = new Size(lcu.Width - margins.Width, lcu.Height - margins.Height);

Post Reply