d3plus/d3plus-viz

filter NaN values out of data

Opened this issue · 3 comments

[
    {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.

@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?

@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:

  • Showing: Record Count
  • Grouped by: PUMS Industry
  • At depth level: Industry Sector

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?