c3js / c3js/c3

Flow not working correctly when adding a new lines

Open
#1,310 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
9.3k
Forks
1.4k
Avg merge
6d 16h
Merged PRs (30d)
1

Description

Hi there,

I am creating a live chart with multiple line charts.
Incoming data is flowed to the chart, but when a gap is detected (no values on the X where it's expected), I split up the data into multiple linecharts. These should draw after each other, with a visible gap.
So for the first point after the gap, I use chart.load to set up the new line.
I use chart.flowfor the points that follow until the next gap is detected.

Here's a fiddle that shows the problem. The lines are not rendered correctly.
Is this a bug or am I doing something wrong here?

https://jsfiddle.net/ur0opgoe/31/

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.