This is a migrated thread and some comments may be shown as answers.

PlotMode="OnTicksPadded" Bug

1 Answer 26 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Marcello
Top achievements
Rank 1
Iron
Marcello asked on 11 Jun 2013, 09:19 AM
Hi,

Look the attatched solution, run it and maximize the form.
Note that the last point have hours=00:00
Now start to move horizontal zoom bar from left to rigth.
When a new X Axys label is added the last point hours is aprrox 12:00
If yor reduce more the zoom bar the points is allways in incorrect position.

Thank's marc.

<telerik:RadCartesianChart>
            <telerik:RadCartesianChart.HorizontalAxis>
                <telerik:DateTimeContinuousAxis MaximumTicks="5" PlotMode="OnTicksPadded"/>
            </telerik:RadCartesianChart.HorizontalAxis>
            <telerik:RadCartesianChart.VerticalAxis>
                <telerik:LinearAxis/>
            </telerik:RadCartesianChart.VerticalAxis>
            <telerik:LineSeries Name="mS">
                 
            </telerik:LineSeries>
            <telerik:RadCartesianChart.Behaviors>
                <telerik:ChartPanAndZoomBehavior />
            </telerik:RadCartesianChart.Behaviors>
        </telerik:RadCartesianChart>


public MainWindow()
        {
            InitializeComponent();
 
            for (int i = 0; i < 100;i++ )
                mS.DataPoints.Add(new Telerik.Charting.CategoricalDataPoint() { Category = System.DateTime.Today.AddDays(i), Value = 5 });
             
        }

1 Answer, 1 is accepted

Sort by
0
Petar Kirov
Telerik team
answered on 12 Jun 2013, 02:40 PM
Hi Marc,

This is an already known issue. You can find it in our Public Issue Tracker on this link where you can follow the progress of the PITS item. Unfortunately a workaround for this issue is not available, so please use the OnTicks mode when using DateTimeContinuousAxis.

We are sorry for the inconvenience.
 

Regards,
Petar Kirov
Telerik

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
Chart
Asked by
Marcello
Top achievements
Rank 1
Iron
Answers by
Petar Kirov
Telerik team
Share this question
or