This is a migrated thread and some comments may be shown as answers.
Gap between the Y-Axis and the first datapoint
1 Answer 6 Views
This is a migrated thread and some comments may be shown as answers.
Jannik
Top achievements
Rank 1
Jannik asked on 02 Jun 2018, 09:50 PM

So, I was wondering, how you could get rid of the gap between the Y Axis and the first data point.

Is it configurable? My first entry is 00:00 and yet there's a gap. It would look better if there would be no gap

 

Basically I added two items

- One for DateTime.Today

- One for DateTime 23:30.

Then I set the Minimum of the ExtDateTimeContinuousAxis to DateTime today and set MaxStep & Unit to 3 hours.

 

I tried a few properties like GapLength, but no luck so far.

1 Answer, 1 is accepted

Sort by
0
Accepted
Didi
Telerik team
answered on 06 Jun 2018, 01:36 PM
Hi Jannik,

Thank you for the provided image.

The 
CategoricalAxis allows you to define how exactly the axis will be plotted on the viewport of the chart. As you want the points to be plotted over each tick and to start from the beginning you should use AxisPlotMode.OnTicks feature. 
Please take a look at the following example in our documentation about the Categorical Axis for our Chart component: https://docs.telerik.com/devtools/xamarin/controls/chart/axes/axes-categorical-axis#example

Hope this helps.

Regards,
Didi
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
Tags
Chart
Asked by
Jannik
Top achievements
Rank 1
Answers by
Didi
Telerik team
Share this question
or