zhangzy0193 / visifire

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

AxisLabels are not aligned properly for large range of Axis. #297

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago

Here AxisMinimum and AxisMaximum are implemented for increasing the range of 
Axis:-
This is similar issue which was solved in Ticket #949.
------------------------------
<vc:Chart  xmlns:vc="clr-namespace:Visifire.Charts;assembly=WPFVisifire.Charts"
  Width="500" Height="300" Theme="Theme1" BorderBrush="Gray" Padding="8"  AnimatedUpdate="true" ZoomingEnabled="True">

            <vc:Chart.Titles>
                <vc:Title Text="Hourly Sales"/>
            </vc:Chart.Titles>

            <vc:Chart.AxesY>
                <vc:Axis Prefix="$"/>
            </vc:Chart.AxesY>

            <vc:Chart.AxesX>
                <vc:Axis ValueFormatString="d/MM/yy" AxisMinimum="1/1/2008" AxisMaximum="10/10/2010" Interval="1"/>
            </vc:Chart.AxesX>

            <vc:Chart.Series>
                <vc:DataSeries RenderAs="Column" XValueType="DateTime" XValueFormatString="d/MM/yy">
                    <vc:DataSeries.DataPoints>
                        <vc:DataPoint XValue="2/1/2009" YValue="873"/>
                        <vc:DataPoint XValue="2/2/2009" YValue="603"/>
                        <vc:DataPoint XValue="2/3/2009" YValue="902"/>
                        <vc:DataPoint XValue="2/4/2009" YValue="570"/>
                        <vc:DataPoint XValue="2/5/2009" YValue="772"/>
                        <vc:DataPoint XValue="2/6/2009" YValue="596"/>
                        <vc:DataPoint XValue="2/7/2009" YValue="580"/>
                        <vc:DataPoint XValue="2/8/2009" YValue="854"/>
                        <vc:DataPoint XValue="2/9/2009" YValue="604"/>
                        <vc:DataPoint XValue="2/10/2009" YValue="990"/>
                        <vc:DataPoint XValue="2/11/2009" YValue="822"/>
                        <vc:DataPoint XValue="2/12/2009" YValue="530"/>
                    </vc:DataSeries.DataPoints>
                </vc:DataSeries>
            </vc:Chart.Series>
  </vc:Chart>

Original issue reported on code.google.com by shoaibi...@gmail.com on 11 Nov 2010 at 5:48