DateTimeContinuousAxis LabelTemplate

Thread is closed for posting
3 posts, 0 answers
  1. Bogdan
    Bogdan avatar
    2 posts
    Member since:
    Aug 2015

    Posted 13 Aug 2015 Link to this post

    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. Bogdan
    Bogdan avatar
    2 posts
    Member since:
    Aug 2015

    Posted 13 Aug 2015 in reply to Bogdan Link to this post

    I forgot to add the second picture:)
  3. Ivaylo Gergov
    Ivaylo Gergov avatar
    691 posts

    Posted 18 Aug 2015 Link to this post

    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.

    Ivaylo Gergov
    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
Back to Top