DateTime Scale Crossing Y-Axis Line Chart

3 posts, 1 answers
  1. Phil
    Phil avatar
    10 posts
    Member since:
    Jun 2019

    Posted 11 Sep 2019 Link to this post

    I have created a line chart with a DateTime scale for the X-Axis, however it start's slightly offset from the Y-Axis. I know I can set this from the CrossAxisPosition on the X Axis scale, but it seems I can only set a pre-defined datetime value, as from the DateTimeScale.png attached, and not a dynamic one based of the datasource. Is this possible or is there a way around it?


  2. Answer
    Silviya avatar
    417 posts

    Posted 16 Sep 2019 Link to this post

    Hi Phil,

    If I understood the requirement correctly, you would like to display the XAxis without the offset at the beginning, i.e. September to be on the same line as YAxis.

    If that's correct, then you can set the X axis scale Minimum property to the first value from the data source through Bindings. For example:

    Property path: XAxis.Scale.Minimum
    Expression: = First(Fields.XValue)

    Please check this screenshot for reference:

    For more information: How to: Use Bindings to Control the Coordinate System Properties.

    Best Regards,
    Progress 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
  3. Phil
    Phil avatar
    10 posts
    Member since:
    Jun 2019

    Posted 16 Sep 2019 in reply to Silviya Link to this post

    Hi Silviya,

    Thanks for getting back to me - that's exactly what I was looking for! I knew there would have been a simple way to do it, just didn't know where to look.

    Thanks again.

Back to Top