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
45 lines
926 B
JSON
45 lines
926 B
JSON
{
|
|
"input": {
|
|
"options": {
|
|
"globalSeriesType": "heatmap",
|
|
"colorScheme": "Bluered",
|
|
"seriesOptions": {},
|
|
"showDataLabels": true
|
|
},
|
|
"data": [
|
|
{
|
|
"name": "a",
|
|
"data": [
|
|
{ "x": 12, "y": 21, "zVal": 3 },
|
|
{ "x": 11, "y": 22, "zVal": 2 },
|
|
{ "x": 11, "y": 21, "zVal": 1 },
|
|
{ "x": 12, "y": 22, "zVal": 4 }
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"output": {
|
|
"series": [
|
|
{
|
|
"x": [12, 11],
|
|
"y": [21, 22],
|
|
"z": [[3, 1], [4, 2]],
|
|
"type": "heatmap",
|
|
"name": "",
|
|
"colorscale": "Bluered"
|
|
},
|
|
{
|
|
"x": [12, 11, 12, 11],
|
|
"y": [21, 21, 22, 22],
|
|
"mode": "text",
|
|
"hoverinfo": "skip",
|
|
"showlegend": false,
|
|
"text": ["3", "1", "4", "2"],
|
|
"textfont": {
|
|
"color": ["black", "black", "black", "black"]
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|