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

Can I create/configure a LinearAxis which skips some ranges where there is no data?

1 Answer 73 Views
ChartView
This is a migrated thread and some comments may be shown as answers.
Cristian
Top achievements
Rank 1
Cristian asked on 09 Feb 2017, 01:45 PM

Hi,

I have a RadCartesianChart with a HorizontalAxis set as LinearAxis, and the series are RangeBarSeries. The problem is that sometimes I have data on my chart only for a small range on the most left side, and some data for a small range on the most right side. In that case, I would like to skip showing on the chart that big empty gap in between.

So, its not only about hiding labels, its the LinearAxis that I don't want it to show 0->140 for example, but to show 0->30, 100->140 (etc)

Is it possible?

1 Answer, 1 is accepted

Sort by
0
Martin Ivanov
Telerik team
answered on 14 Feb 2017, 09:57 AM
Hello Cristian,

No, this is not supported by the chart's LinearAxis. In order to achieve similar behavior you can use a CategoricalAxis. But, keep in mind that this type of axis doesn't have a notion of range.

Regards,
Martin
Telerik by Progress
Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
Tags
ChartView
Asked by
Cristian
Top achievements
Rank 1
Answers by
Martin Ivanov
Telerik team
Share this question
or