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
41 lines
1005 B
JSON
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" } }
|
|
]
|
|
}
|
|
]
|
|
}
|
|
}
|