Files
redash/client/app/visualizations/chart/fixtures/getChartData/multiple-series-multiple-y.json
Levko Kravets 2c98f0425d Allow the user to decide how to handle null values in charts (#4071)
* getredash/redash#2629 Refactor Chart visualization, add option for handling NULL values (keep/convert to 0.0)

* Handle null values in line/area stacking code; some cleanup

* Handle edge case: line/area stacking when last value of one of series is missing

* Mjnor update to line/area stacking code

* Fix line/area normalize to percents feature

* Unit tests

* Refine tests; add tests for prepareLayout function

* Tests for prepareData (heatmap) function

* Tests for prepareData (pie) function

* Tests for prepareData (bar, line, area) function

* Tests for prepareData (scatter, bubble) function

* Tests for prepareData (box) function

* Remove unused file
2019-09-09 13:00:26 +03:00

42 lines
989 B
JSON

{
"input": {
"data": [
{ "a": 42, "b": 10, "c": 41, "d": 92 },
{ "a": 62, "b": 73 },
{ "a": 21, "b": null, "c": 33 },
{ "a": 85, "b": 50 },
{ "a": 95 }
],
"options": {
"columnMapping": {
"a": "x",
"b": "y",
"c": "y"
},
"seriesOptions": {}
}
},
"output": {
"data": [
{
"name": "b",
"type": "column",
"data": [
{ "x": 42, "y": 10, "$raw": { "a": 42, "b": 10, "c": 41, "d": 92 } },
{ "x": 62, "y": 73, "$raw": { "a": 62, "b": 73 } },
{ "x": 21, "y": null, "$raw": { "a": 21, "b": null, "c": 33 } },
{ "x": 85, "y": 50, "$raw": { "a": 85, "b": 50 } }
]
},
{
"name": "c",
"type": "column",
"data": [
{ "x": 42, "y": 41, "$raw": { "a": 42, "b": 10, "c": 41, "d": 92 } },
{ "x": 21, "y": 33, "$raw": { "a": 21, "b": null, "c": 33 } }
]
}
]
}
}