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

Axis with variable step size

1 Answer 16 Views
Chart
This is a migrated thread and some comments may be shown as answers.
daniel
Top achievements
Rank 1
daniel asked on 29 May 2017, 08:46 AM

Hello,

I need to create a chart with an horizontal categorical axis, but with a variable distance between the labels (something similar to the attached file).

In the categorical axis I didn't find anything that could help me. 

Do you have any idea how to obtain this kind of chart?

Thanks

1 Answer, 1 is accepted

Sort by
0
Dinko
Telerik team
answered on 01 Jun 2017, 07:46 AM
Hello Daniel,

Thank you for contacting us.

The control doesn't provide functionality to set the width of each category slot separately. When working with categorical data the chart creates categories for each distinct category value in the source collection of the series. Each category slot on the axis has an equal width with the other slots. So, for example, if the whole plot area have size 200 pixels and there are 2 categories in the data, the chart will create two categorical slots with 100 pixels width each. If there are 5 categories each slot will be 40 pixels wide. 

As a side note, you mark the product of this thread to RadChart which is our old charting component. From your question, we are assuming that you are talking for the new RadChartView so we changing the product of this ticket to RadChartView for WPF.

Regards,
Dinko
Progress Telerik
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
Chart
Asked by
daniel
Top achievements
Rank 1
Answers by
Dinko
Telerik team
Share this question
or