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

DateTimeContinuousAxis LabelTemplate

2 Answers 102 Views
Chart
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Bogdan
Top achievements
Rank 1
Bogdan asked on 13 Aug 2015, 04:47 PM
I'm currently working on a project that involves creating some charts with specific design so I need to create a ChartModel class that has the X axis like in the attached photo. Until now i managed to make the chart to look like in the second picture, but i still have to show those tiny bullets from the first picture. Any ideas on how i can do that? For example, i tried to use a DataTemplate for the LabelTemplate of the x Axis that have a bullet and a textblock, and for the texblock i tried to bind the visibility property to one of the property of the chart model class, but that didn't work because the only thing that was passed to the template was the text that contained the date(for category).

2 Answers, 1 is accepted

Sort by
0
Bogdan
Top achievements
Rank 1
answered on 13 Aug 2015, 04:48 PM
I forgot to add the second picture:)
0
Ivaylo Gergov
Telerik team
answered on 18 Aug 2015, 09:03 AM
Hello Bogdan,

Thank you for contacting us.

You can use the LabelTemplateSelector and choose the desired template for each point. Unfortunately the context that you get is the ordered number of the label.

Please, let me know should you have any other questions.

Regards,
Ivaylo Gergov
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
Chart
Asked by
Bogdan
Top achievements
Rank 1
Answers by
Bogdan
Top achievements
Rank 1
Ivaylo Gergov
Telerik team
Share this question
or