d3plus / d3plus-viz

Abstract ES6 class that drives d3plus visualizations.
MIT License
7 stars 2 forks source link

filter NaN values out of data #92

Open cnavarreteliz opened 6 years ago

cnavarreteliz commented 6 years ago
[
    {value: 10, id: "alpha"},
    {value: 30, id: "alpha"},
    {value: 50, id: "alpha"},
    {value: 20, id: "beta"},
    {value: 40, id: "beta"},
    {value: NaN, id: "beta"}
]

In datasets received by d3plus, filter the nan values.

davelandry commented 6 years ago

@cnavarreteliz because every visualization uses their own set of values ("size" for Treemap, "x" and "y" for BarChart), this will probably have to be done at the visualization level (and not in d3plus-viz).

Does this break every type of chart, or just specific ones?

cnavarreteliz commented 5 years ago

@davelandry I've been investigating more about this bug, and I found that the NaN problem is related with Plot.js, but I haven't identified yet the root cause of the problem. image

Steps for to reproduce in VizBuilder:

davelandry commented 5 years ago

thanks for the update @cnavarreteliz! can you try using the underlying data in a sandboxed jsfiddle so that we can isolate which chart(s) is causing the error?