mirror of
https://github.com/getredash/redash.git
synced 2026-03-22 10:00:17 -04:00
* 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
42 lines
989 B
JSON
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 } }
|
|
]
|
|
}
|
|
]
|
|
}
|
|
}
|