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

0
0

When I crate a chart in a grid, the chart’s width fills the available horizontal space, but the vertical height of the chart is limited to about 150 pixels.
I don’t want to explicitly set the height but I can’t see what’s causing this problem. Although I’ve solved it in a couple of places it seems to annoyingly recur.

Version
4.2.5.10519
  • You must to post comments
0
0

SciChart by default expands to fit its parent. In WPF a Grid – the children should be full size unless RowDefintions and ColumnDefinitions are set.

Do you have any Grid.RowDefinitions defined with a height of 150? That will cause this.

You can inspect what is causing the sizing using the Snoop WPF tool. Point it at your application and it will yield really useful information about the sizes of elements and what is causing this.

Best regards,
Andrew

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.