I would like to ask for your help on the following point. I am working on a personal project that involves drawing a graph that shows data day by day. The data are measurements results with several different attributes. I am using timescale to have xScale that is able to show data that was measured on a given
xScale = d3.scaleTime() .domain( d3.timeDays(d3.timeDay(date), d3.timeDay.offset(date)) ) .range([margin.left, width - margin.right]);
Measurements are performed by an external system that saves results circa every minute, but with breaks. And these breaks are my problem. The code I have is drawing a line that connects last measurement before a break and the first one after a break. Could you suggest a solution that will not draw a line between these data points?
I am aware of
d3.area.defined, however it seems it is not a solution. Line with Missing Data has data that have objects with
date present and
value as undefined. However, my dataset has no data for the breaks periods and
d3.area.defined() is not a solution.