Вопрос

I have a requirement to make a line chart by using dc.js. hourly basis some amount will be plotted. my concern is to break the line if on that particular hour no data has come. suppose, 12 hour , no data has come .. so upto 11th hour line will show. and from 13th hours, the line will be shown again based on data availability.

Это было полезно?

Решение

It can be possible to break the line in line chart, by not displaying the particular line in that period.

Using .defined(function(d) { return d.responseTime != -120;}) function of d3.

Другие советы

Sorry, this isn't supported.

It's generally not considered a good practice to use a line chart for discontinuous data - a bar chart is more appropriate. However, as this is often requested, feel free to open an enhancement request.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top