Wpf toolkit: charting area shrinked

Jan 1, 2012 at 6:51 AM

Hi all,

I am new to WPF and its charting toolkit. I am trying to draw multiple lineseries on a line graph. As more lineseries are drawn, the plot area shrink. You can refer to the following website (there are print screen of my problem over there) that i have once post the same question. I just realized the problem is not solved.  

can any1 help me out ?

Thank you in advance.


Jun 17, 2013 at 6:09 PM
Edited Jun 17, 2013 at 6:11 PM

I was not able to spot cause of this issue but I think that I've accidentally found walk-around to this problem. In my case it was somehow related to my LineSeries' independent axes. I wanted them to be hidden but simply setting Visibility to Hidden caused this weird shrinking problem. When I've additionally set axis Height property to 0 it suddenly stopped shrinking my chart.

Here's fixed code:
    <chartingToolkit:DateTimeAxis Orientation="X" Height="0" Visibility="Hidden" />