mirror of
https://github.com/getredash/redash.git
synced 2026-03-22 19:00:09 -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
39 lines
875 B
JSON
39 lines
875 B
JSON
{
|
|
"input": {
|
|
"options": {
|
|
"globalSeriesType": "column",
|
|
"legend": { "enabled": false },
|
|
"xAxis": { "type": "-", "labels": { "enabled": true } },
|
|
"yAxis": [
|
|
{ "type": "linear" },
|
|
{ "type": "linear", "opposite": true }
|
|
],
|
|
"series": { "stacking": "stack", "error_y": { "type": "data", "visible": true } }
|
|
},
|
|
"series": [
|
|
{ "name": "a" }
|
|
]
|
|
},
|
|
"output": {
|
|
"layout": {
|
|
"margin": { "l": 10, "r": 10, "b": 10, "t": 25, "pad": 4 },
|
|
"width": 400,
|
|
"height": 300,
|
|
"autosize": true,
|
|
"showlegend": false,
|
|
"barmode": "relative",
|
|
"xaxis": {
|
|
"automargin": true,
|
|
"showticklabels": true,
|
|
"title": null,
|
|
"type": "-"
|
|
},
|
|
"yaxis": {
|
|
"automargin": true,
|
|
"title": null,
|
|
"type": "linear"
|
|
}
|
|
}
|
|
}
|
|
}
|