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

Line Series - Break Line

1 Answer 174 Views
Charts
This is a migrated thread and some comments may be shown as answers.
Sitefinity
Top achievements
Rank 1
Sitefinity asked on 21 Jun 2012, 07:14 PM
I have a requirement that if the series type of line hits 0 to break the line and continue once the series has another value above 0.

Is this possible? Can I hide certain data points?

Let me know if a visual would help.

1 Answer, 1 is accepted

Sort by
0
Iliana Dyankova
Telerik team
answered on 25 Jun 2012, 09:29 AM
Hello Juan,

You could achieve this via the missingValues configuration option of the Kendo UI Chart. For example: 
$("#chart").kendoChart({
  //...
  seriesDefaults: {
     type: "line",
     missingValues: "gap"
  },
  series: [{
     name: "World",
     data: [15.7, 20, 30, null, 26.6, 14, 36, 17]
      }, {
     name: "United States",
     data: [67.96, null, 74, null, 78]
   }],
  //...
});

Please note that you must set null to the missing values instead of 0.

Regards,

Iliana Nikolova
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Charts
Asked by
Sitefinity
Top achievements
Rank 1
Answers by
Iliana Dyankova
Telerik team
Share this question
or