zhangzy0193 / visifire

Automatically exported from code.google.com/p/visifire
1 stars 4 forks source link

AnimatedUpdate issue Column/StackedColumn Charts #321

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago

Chart with AnimatedUpdate set to true and AxisMinmum is set,changing the YValue 
of the point to a value which is quiet bigger then the old DataPoint will 
result in gap at the bottom.

TestCase XAML:

   <vc:Chart Width="500" Height="300" x:Name="MyChart" AnimationEnabled="true" AnimatedUpdate="true">
            <vc:Chart.AxesY>
                <vc:Axis AxisMinimum="2"/>
            </vc:Chart.AxesY>
            <vc:Chart.Series>
                <vc:DataSeries RenderAs="Column" LabelEnabled="true" MarkerEnabled="true">
                    <vc:DataSeries.DataPoints>
                        <vc:DataPoint YValue="1" />
                        <vc:DataPoint YValue="2" />
                        <vc:DataPoint YValue="3" />
                        <vc:DataPoint YValue="4" />
                        <vc:DataPoint YValue="5" />
                    </vc:DataSeries.DataPoints>
                </vc:DataSeries>
            </vc:Chart.Series>
        </vc:Chart>

TestCase code behind:

 void MyChart_MouseLeftButtonUp(object sender, MouseButtonEventArgs e)
        {
            MyChart.Series[0].DataPoints[1].YValue = 33;
        }

Original issue reported on code.google.com by sharmila...@gmail.com on 10 Feb 2011 at 7:44