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

DateTimeContinuousAxis shows categories since update

2 Answers 41 Views
ChartView
This is a migrated thread and some comments may be shown as answers.
Martin
Top achievements
Rank 1
Martin asked on 09 Feb 2015, 02:26 PM
Hi,

since my last update the DateTimeContinuousAxis changed the view and I'm confused how to get the old view back.

This is what our X axis looked before: https://dl.dropboxusercontent.com/u/55589036/Pictures/Screenshots/20150108152425.png
And now: https://www.dropbox.com/s/0f961s1on7t0fus/Screenshot%202015-02-09%2015.24.10.png?dl=0

I'm using:             

<telerik:RadCartesianChart.HorizontalAxis>
    <telerik:DateTimeContinuousAxis x:Name="dateTimeContinuousAxis" LabelFitMode="None" LabelFormat="HH:mm:ss" />
</telerik:RadCartesianChart.HorizontalAxis>

Also the new version added space left and right of it, I want to get rid of. I think this connects to my main problem.


How can I solve this to get my old X axis view back?

2 Answers, 1 is accepted

Sort by
0
Accepted
Martin Ivanov
Telerik team
answered on 10 Feb 2015, 08:02 AM
Hi Martin,

The plot position of the labels in the DateTime and the categorical axes of the chart is controlled through their PlotMode property. The default PlotMode of the DateTimeContinuousAxis is OnTicks and the end result should look like in the "before" picture from your post. The "now" picture looks like the axis has set its PlotMode property to BetweenTicks.

Without your implementation I cannot be sure what is causing the axis to plot the labels between the ticks, but you can try to set to PlotMode of the axis to OnTicks (or OnTicksPadded) and let me know if this helps.

Regards,
Martin
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Martin
Top achievements
Rank 1
answered on 10 Feb 2015, 08:32 AM
The default PlotMode seems to be BetweenTicks at me. Setting OnTicks in the XAML explicit solved the issue. Thank you.
Tags
ChartView
Asked by
Martin
Top achievements
Rank 1
Answers by
Martin Ivanov
Telerik team
Martin
Top achievements
Rank 1
Share this question
or