SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, and iOS Chart & Android Chart Components

0
0

How can I get the chart area width in pixel to calculate pixel per unit eg. pixel/mm?

Version
5.3.011954
  • You must to post comments
0
0

Hi Roland,

Any WPF control has the property ActualWidth and ActualHeight to report its width, height.

For the SciChartSurface, you can access the inner chart surface’s size using some code like this:

((ChartModiiferSurface)SciChartSurface.ModifierSurface).ActualWidth

For WPF you can convert between size on screen and pixels using a method like this
https://stackoverflow.com/questions/10231627/convert-pixels-to-cm-in-wpf

Best regards,
Andrew

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.

SciChart WPF v6 BETA released! Note pricing/licensing changes are coming. Contact us to beat the rise!Read more
+