c3js / c3

:bar_chart: A D3-based reusable chart library
http://c3js.org
MIT License
9.34k stars 1.39k forks source link

Null points render & cause cursor change on mouseover #2768

Open Fedjmike opened 4 years ago

Fedjmike commented 4 years ago

Putting the following code into https://c3js.org/samples/chart_scatter.html:

var chart = c3.generate({
    data: {
        columns: [
            ['data1', 30, 200, 100, 400, 150, 250],
            ['data2', 50, null, 10, 40, 15, 25]
        ],
        type: 'scatter'
    }
});

At y=0 and x=1, there is a ghost point corresponding to the null, which is rendered with opacity: 0, but nevertheless causes a cursor change on mouseover.

I'm currently working around this by setting display: none. Using d3 remove() instead causes some flickering re-rendering issues.