Files
redash/client/app/visualizations/chart/fixtures/getChartData/multiple-series-grouped.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

41 lines
1005 B
JSON

{
"input": {
"data": [
{ "a": 42, "b": 10, "g": "first" },
{ "a": 62, "b": 73, "g": "first" },
{ "a": 21, "b": 82, "g": "second" },
{ "a": 85, "b": 50, "g": "first" },
{ "a": 95, "b": 32, "g": "second" }
],
"options": {
"columnMapping": {
"a": "x",
"b": "y",
"g": "series"
},
"seriesOptions": {}
}
},
"output": {
"data": [
{
"name": "first",
"type": "column",
"data": [
{ "x": 42, "y": 10, "$raw": { "a": 42, "b": 10, "g": "first" } },
{ "x": 62, "y": 73, "$raw": { "a": 62, "b": 73, "g": "first" } },
{ "x": 85, "y": 50, "$raw": { "a": 85, "b": 50, "g": "first" } }
]
},
{
"name": "second",
"type": "column",
"data": [
{ "x": 21, "y": 82, "$raw": { "a": 21, "b": 82, "g": "second" } },
{ "x": 95, "y": 32, "$raw": { "a": 95, "b": 32, "g": "second" } }
]
}
]
}
}