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

x axis and multiple series with different x values

1 Answer 66 Views
Charts
This is a migrated thread and some comments may be shown as answers.
Torben Pape-Haugaard
Top achievements
Rank 1
Torben Pape-Haugaard asked on 09 Jan 2017, 10:57 AM

Hi

Take a look at this example:

http://dojo.telerik.com/IQuLu

I want a chart with 2 linjes, the value of the first line should be "hard coded" to 14-17. The other line is dynamic and the values will always be between 14 and 17.

As you can see in the example the chart is doing some weird stuff with the x-axis.

Can you help me understand why the chart is doing this?

1 Answer, 1 is accepted

Sort by
0
Accepted
Patrick | Technical Support Engineer, Senior
Telerik team
answered on 09 Jan 2017, 04:32 PM
Hello Torben,

First, thank you for the Dojo replicating the issue.  It helps!

The Line chart is using the "y" field as named categories.   I would highly recommend changing the Line chart to a ScatterLine chart.  It uses X/Y-Axes for a better analysis of numeric data.  

Please take a look at this Kendo UI Dojo which updates your previous Line Chart to a ScatterLine Chart.

I hope this helps!

Regards,
Patrick
Telerik by Progress
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
Charts
Asked by
Torben Pape-Haugaard
Top achievements
Rank 1
Answers by
Patrick | Technical Support Engineer, Senior
Telerik team
Share this question
or