Wpf toolkit: charting area shrinked

Jan 1, 2012 at 7: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.  
http://social.expression.microsoft.com/Forums/en/wpf/thread/925fecd7-9143-4f5e-bd04-8fece9cc5574

can any1 help me out ?

Thank you in advance.

 

Jun 17, 2013 at 7:09 PM
Edited Jun 17, 2013 at 7:11 PM
Hi,

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:LineSeries.IndependentAxis>
    <chartingToolkit:DateTimeAxis Orientation="X" Height="0" Visibility="Hidden" />
</chartingToolkit:LineSeries.IndependentAxis>