StatCan / dataviz-components

Data visualizations components made with D3.js
Other
6 stars 3 forks source link

handles null data values in line chart #11

Open KatiRG opened 4 years ago

KatiRG commented 4 years ago

I added .defined to d3.line in case the line chart data has null values, e.g.

{
    "pop": {
        "keys": {
            "name": "date", 
            "values": ["2016-09", "2016-10", "2016-11", "2016-12"]
        }
        ,
        "world": [null, 62241, 64442, 160291],
        "city": [42241, 44442, 110291, 120291]
    }
}