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

Chart line style not working for "line" series

2 Answers 95 Views
Charts
This is a migrated thread and some comments may be shown as answers.
Iuliana Maria
Top achievements
Rank 1
Iron
Iuliana Maria asked on 21 Mar 2019, 12:48 PM

Hello!

 

I want to customize the style for my line series, but this only seems to be possible for "area" type and not for "line".

Here I have an example: https://dojo.telerik.com/AlekeFUB

I wanted to set the style as "step". When I set the series type as "area", it works fine, but if I change it to "line", the step style is not applied anymore. I know I can achieve this with seriesDefaults, but I want to set different line style to different serie. Is it possible to do so?

 

Thank you,

Iuliana Maria Candea

2 Answers, 1 is accepted

Sort by
0
Tsvetina
Telerik team
answered on 25 Mar 2019, 10:56 AM
Hi Iuliana,

In Line series, the "step" style is set directly through the series.style property:
series: [{
  type: "line",
  style: "step",
  data: [1, 4, 3]
}]

Here is the updated example:
https://dojo.telerik.com/AlekeFUB/2


Regards,
Tsvetina
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Iuliana Maria
Top achievements
Rank 1
Iron
answered on 25 Mar 2019, 11:38 AM

Hi Tsvetina,

 

It works! Thank you!

 

Iuliana Maria Candea

Tags
Charts
Asked by
Iuliana Maria
Top achievements
Rank 1
Iron
Answers by
Tsvetina
Telerik team
Iuliana Maria
Top achievements
Rank 1
Iron
Share this question
or