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

DateTime Scale Crossing Y-Axis Line Chart

2 Answers 126 Views
Report Designer (standalone)
This is a migrated thread and some comments may be shown as answers.
Phil
Top achievements
Rank 1
Phil asked on 11 Sep 2019, 11:19 AM

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?

Thanks,

2 Answers, 1 is accepted

Sort by
0
Accepted
Silviya
Telerik team
answered on 16 Sep 2019, 08:59 AM

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: https://www.screencast.com/t/cMmsovuf0cdh.

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

Best Regards,
Silviya
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
0
Phil
Top achievements
Rank 1
answered on 16 Sep 2019, 09:44 AM

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.

Tags
Report Designer (standalone)
Asked by
Phil
Top achievements
Rank 1
Answers by
Silviya
Telerik team
Phil
Top achievements
Rank 1
Share this question
or