Support boundary filling modes in radialLinear scale (#6281)
47
test/fixtures/plugin.filler/fill-radar-boundary-end-circular.json
vendored
Normal file
@@ -0,0 +1,47 @@
|
||||
{
|
||||
"config": {
|
||||
"type": "radar",
|
||||
"data": {
|
||||
"labels": ["0", "1", "2", "3", "4", "5", "6", "7", "8"],
|
||||
"datasets": [{
|
||||
"backgroundColor": "rgba(0, 0, 192, 0.25)",
|
||||
"data": ["NaN", "NaN", 2, 4, 2, 1, -1, 1, 2]
|
||||
}, {
|
||||
"backgroundColor": "rgba(0, 192, 0, 0.25)",
|
||||
"data": [4, 2, "NaN", 3, 2.5, "NaN", -2, 1.5, 3]
|
||||
}, {
|
||||
"backgroundColor": "rgba(192, 0, 0, 0.25)",
|
||||
"data": [3.5, 2, 1, 2.5, -2, 3, -1, "NaN", "NaN"]
|
||||
}, {
|
||||
"backgroundColor": "rgba(128, 0, 128, 0.25)",
|
||||
"data": [5, 6, 5, -2, -4, -3, 4, 2, 4.5]
|
||||
}]
|
||||
},
|
||||
"options": {
|
||||
"responsive": false,
|
||||
"legend": false,
|
||||
"title": false,
|
||||
"scale": {
|
||||
"display": false,
|
||||
"gridLines": {
|
||||
"circular": true
|
||||
}
|
||||
},
|
||||
"elements": {
|
||||
"point": {
|
||||
"radius": 0
|
||||
},
|
||||
"line": {
|
||||
"borderColor": "transparent",
|
||||
"fill": "end"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"options": {
|
||||
"canvas": {
|
||||
"height": 256,
|
||||
"width": 256
|
||||
}
|
||||
}
|
||||
}
|
||||
BIN
test/fixtures/plugin.filler/fill-radar-boundary-end-circular.png
vendored
Normal file
|
After Width: | Height: | Size: 19 KiB |
44
test/fixtures/plugin.filler/fill-radar-boundary-end.json
vendored
Normal file
@@ -0,0 +1,44 @@
|
||||
{
|
||||
"config": {
|
||||
"type": "radar",
|
||||
"data": {
|
||||
"labels": ["0", "1", "2", "3", "4", "5", "6", "7", "8"],
|
||||
"datasets": [{
|
||||
"backgroundColor": "rgba(0, 0, 192, 0.25)",
|
||||
"data": ["NaN", "NaN", 2, 4, 2, 1, -1, 1, 2]
|
||||
}, {
|
||||
"backgroundColor": "rgba(0, 192, 0, 0.25)",
|
||||
"data": [4, 2, "NaN", 3, 2.5, "NaN", -2, 1.5, 3]
|
||||
}, {
|
||||
"backgroundColor": "rgba(192, 0, 0, 0.25)",
|
||||
"data": [3.5, 2, 1, 2.5, -2, 3, -1, "NaN", "NaN"]
|
||||
}, {
|
||||
"backgroundColor": "rgba(128, 0, 128, 0.25)",
|
||||
"data": [5, 6, 5, -2, -4, -3, 4, 2, 4.5]
|
||||
}]
|
||||
},
|
||||
"options": {
|
||||
"responsive": false,
|
||||
"legend": false,
|
||||
"title": false,
|
||||
"scale": {
|
||||
"display": false
|
||||
},
|
||||
"elements": {
|
||||
"point": {
|
||||
"radius": 0
|
||||
},
|
||||
"line": {
|
||||
"borderColor": "transparent",
|
||||
"fill": "end"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"options": {
|
||||
"canvas": {
|
||||
"height": 256,
|
||||
"width": 256
|
||||
}
|
||||
}
|
||||
}
|
||||
BIN
test/fixtures/plugin.filler/fill-radar-boundary-end.png
vendored
Normal file
|
After Width: | Height: | Size: 19 KiB |
47
test/fixtures/plugin.filler/fill-radar-boundary-origin-circular.json
vendored
Normal file
@@ -0,0 +1,47 @@
|
||||
{
|
||||
"config": {
|
||||
"type": "radar",
|
||||
"data": {
|
||||
"labels": ["0", "1", "2", "3", "4", "5", "6", "7", "8"],
|
||||
"datasets": [{
|
||||
"backgroundColor": "rgba(0, 0, 192, 0.25)",
|
||||
"data": ["NaN", "NaN", 2, 4, 2, 1, -1, 1, 2]
|
||||
}, {
|
||||
"backgroundColor": "rgba(0, 192, 0, 0.25)",
|
||||
"data": [4, 2, "NaN", 3, 2.5, "NaN", -2, 1.5, 3]
|
||||
}, {
|
||||
"backgroundColor": "rgba(192, 0, 0, 0.25)",
|
||||
"data": [3.5, 2, 1, 2.5, -2, 3, -1, "NaN", "NaN"]
|
||||
}, {
|
||||
"backgroundColor": "rgba(128, 0, 128, 0.25)",
|
||||
"data": [5, 6, 5, -2, -4, -3, 4, 2, 4.5]
|
||||
}]
|
||||
},
|
||||
"options": {
|
||||
"responsive": false,
|
||||
"legend": false,
|
||||
"title": false,
|
||||
"scale": {
|
||||
"display": false,
|
||||
"gridLines": {
|
||||
"circular": true
|
||||
}
|
||||
},
|
||||
"elements": {
|
||||
"point": {
|
||||
"radius": 0
|
||||
},
|
||||
"line": {
|
||||
"borderColor": "transparent",
|
||||
"fill": "origin"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"options": {
|
||||
"canvas": {
|
||||
"height": 256,
|
||||
"width": 256
|
||||
}
|
||||
}
|
||||
}
|
||||
BIN
test/fixtures/plugin.filler/fill-radar-boundary-origin-circular.png
vendored
Normal file
|
After Width: | Height: | Size: 15 KiB |
@@ -5,13 +5,13 @@
|
||||
"labels": ["0", "1", "2", "3", "4", "5", "6", "7", "8"],
|
||||
"datasets": [{
|
||||
"backgroundColor": "rgba(0, 0, 192, 0.25)",
|
||||
"data": [null, null, 2, 4, 2, 1, -1, 1, 2]
|
||||
"data": ["NaN", "NaN", 2, 4, 2, 1, -1, 1, 2]
|
||||
}, {
|
||||
"backgroundColor": "rgba(0, 192, 0, 0.25)",
|
||||
"data": [4, 2, null, 3, 2.5, null, -2, 1.5, 3]
|
||||
"data": [4, 2, "NaN", 3, 2.5, "NaN", -2, 1.5, 3]
|
||||
}, {
|
||||
"backgroundColor": "rgba(192, 0, 0, 0.25)",
|
||||
"data": [3.5, 2, 1, 2.5, -2, 3, -1, null, null]
|
||||
"data": [3.5, 2, 1, 2.5, -2, 3, -1, "NaN", "NaN"]
|
||||
}, {
|
||||
"backgroundColor": "rgba(128, 0, 128, 0.25)",
|
||||
"data": [5, 6, 5, -2, -4, -3, 4, 2, 4.5]
|
||||
|
||||
|
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 16 KiB |
@@ -5,13 +5,13 @@
|
||||
"labels": ["0", "1", "2", "3", "4", "5", "6", "7", "8"],
|
||||
"datasets": [{
|
||||
"backgroundColor": "rgba(0, 0, 192, 0.25)",
|
||||
"data": [null, null, 2, 4, 2, 1, -1, 1, 2]
|
||||
"data": ["NaN", "NaN", 2, 4, 2, 1, -1, 1, 2]
|
||||
}, {
|
||||
"backgroundColor": "rgba(0, 192, 0, 0.25)",
|
||||
"data": [4, 2, null, 3, 2.5, null, -2, 1.5, 3]
|
||||
"data": [4, 2, "NaN", 3, 2.5, "NaN", -2, 1.5, 3]
|
||||
}, {
|
||||
"backgroundColor": "rgba(192, 0, 0, 0.25)",
|
||||
"data": [3.5, 2, 1, 2.5, -2, 3, -1, null, null]
|
||||
"data": [3.5, 2, 1, 2.5, -2, 3, -1, "NaN", "NaN"]
|
||||
}, {
|
||||
"backgroundColor": "rgba(128, 0, 128, 0.25)",
|
||||
"data": [5, 6, 5, -2, -4, -3, 4, 2, 4.5]
|
||||
|
||||
|
Before Width: | Height: | Size: 9.9 KiB After Width: | Height: | Size: 15 KiB |
47
test/fixtures/plugin.filler/fill-radar-boundary-start-circular.json
vendored
Normal file
@@ -0,0 +1,47 @@
|
||||
{
|
||||
"config": {
|
||||
"type": "radar",
|
||||
"data": {
|
||||
"labels": ["0", "1", "2", "3", "4", "5", "6", "7", "8"],
|
||||
"datasets": [{
|
||||
"backgroundColor": "rgba(0, 0, 192, 0.25)",
|
||||
"data": ["NaN", "NaN", 2, 4, 2, 1, -1, 1, 2]
|
||||
}, {
|
||||
"backgroundColor": "rgba(0, 192, 0, 0.25)",
|
||||
"data": [4, 2, "NaN", 3, 2.5, "NaN", -2, 1.5, 3]
|
||||
}, {
|
||||
"backgroundColor": "rgba(192, 0, 0, 0.25)",
|
||||
"data": [3.5, 2, 1, 2.5, -2, 3, -1, "NaN", "NaN"]
|
||||
}, {
|
||||
"backgroundColor": "rgba(128, 0, 128, 0.25)",
|
||||
"data": [5, 6, 5, -2, -4, -3, 4, 2, 4.5]
|
||||
}]
|
||||
},
|
||||
"options": {
|
||||
"responsive": false,
|
||||
"legend": false,
|
||||
"title": false,
|
||||
"scale": {
|
||||
"display": false,
|
||||
"gridLines": {
|
||||
"circular": true
|
||||
}
|
||||
},
|
||||
"elements": {
|
||||
"point": {
|
||||
"radius": 0
|
||||
},
|
||||
"line": {
|
||||
"borderColor": "transparent",
|
||||
"fill": "start"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"options": {
|
||||
"canvas": {
|
||||
"height": 256,
|
||||
"width": 256
|
||||
}
|
||||
}
|
||||
}
|
||||
BIN
test/fixtures/plugin.filler/fill-radar-boundary-start-circular.png
vendored
Normal file
|
After Width: | Height: | Size: 14 KiB |
44
test/fixtures/plugin.filler/fill-radar-boundary-start.json
vendored
Normal file
@@ -0,0 +1,44 @@
|
||||
{
|
||||
"config": {
|
||||
"type": "radar",
|
||||
"data": {
|
||||
"labels": ["0", "1", "2", "3", "4", "5", "6", "7", "8"],
|
||||
"datasets": [{
|
||||
"backgroundColor": "rgba(0, 0, 192, 0.25)",
|
||||
"data": ["NaN", "NaN", 2, 4, 2, 1, -1, 1, 2]
|
||||
}, {
|
||||
"backgroundColor": "rgba(0, 192, 0, 0.25)",
|
||||
"data": [4, 2, "NaN", 3, 2.5, "NaN", -2, 1.5, 3]
|
||||
}, {
|
||||
"backgroundColor": "rgba(192, 0, 0, 0.25)",
|
||||
"data": [3.5, 2, 1, 2.5, -2, 3, -1, "NaN", "NaN"]
|
||||
}, {
|
||||
"backgroundColor": "rgba(128, 0, 128, 0.25)",
|
||||
"data": [5, 6, 5, -2, -4, -3, 4, 2, 4.5]
|
||||
}]
|
||||
},
|
||||
"options": {
|
||||
"responsive": false,
|
||||
"legend": false,
|
||||
"title": false,
|
||||
"scale": {
|
||||
"display": false
|
||||
},
|
||||
"elements": {
|
||||
"point": {
|
||||
"radius": 0
|
||||
},
|
||||
"line": {
|
||||
"borderColor": "transparent",
|
||||
"fill": "start"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"options": {
|
||||
"canvas": {
|
||||
"height": 256,
|
||||
"width": 256
|
||||
}
|
||||
}
|
||||
}
|
||||
BIN
test/fixtures/plugin.filler/fill-radar-boundary-start.png
vendored
Normal file
|
After Width: | Height: | Size: 9.9 KiB |
53
test/fixtures/plugin.filler/fill-radar-dataset-border.json
vendored
Normal file
@@ -0,0 +1,53 @@
|
||||
{
|
||||
"config": {
|
||||
"type": "radar",
|
||||
"data": {
|
||||
"labels": ["0", "1", "2", "3", "4", "5", "6", "7", "8"],
|
||||
"datasets": [{
|
||||
"backgroundColor": "rgba(255, 0, 0, 0.25)",
|
||||
"data": ["NaN", "NaN", 0, -1, 0, 1, 0, -1, 0],
|
||||
"fill": 1
|
||||
}, {
|
||||
"backgroundColor": "rgba(0, 255, 0, 0.25)",
|
||||
"data": [1, 0, "NaN", 1, 0, "NaN", -1, 0, 1],
|
||||
"fill": "+1"
|
||||
}, {
|
||||
"backgroundColor": "rgba(0, 0, 255, 0.25)",
|
||||
"data": [0, 2, 0, -2, 0, 2, 0],
|
||||
"fill": 3
|
||||
}, {
|
||||
"backgroundColor": "rgba(255, 0, 255, 0.25)",
|
||||
"data": [2, 0, -2, 0, 2, 0, -2, 0, 2],
|
||||
"fill": "-2"
|
||||
}, {
|
||||
"backgroundColor": "rgba(255, 255, 0, 0.25)",
|
||||
"data": [3, 1, -1, -3, -1, 1, 3, 1, -1],
|
||||
"fill": "-1"
|
||||
}]
|
||||
},
|
||||
"options": {
|
||||
"responsive": false,
|
||||
"legend": false,
|
||||
"title": false,
|
||||
"scale": {
|
||||
"display": false
|
||||
},
|
||||
"elements": {
|
||||
"point": {
|
||||
"radius": 0
|
||||
},
|
||||
"line": {
|
||||
"borderColor": "black",
|
||||
"borderWidth": 5,
|
||||
"tension": 0
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"options": {
|
||||
"canvas": {
|
||||
"height": 256,
|
||||
"width": 256
|
||||
}
|
||||
}
|
||||
}
|
||||
BIN
test/fixtures/plugin.filler/fill-radar-dataset-border.png
vendored
Normal file
|
After Width: | Height: | Size: 28 KiB |
52
test/fixtures/plugin.filler/fill-radar-dataset-spline.json
vendored
Normal file
@@ -0,0 +1,52 @@
|
||||
{
|
||||
"config": {
|
||||
"type": "radar",
|
||||
"data": {
|
||||
"labels": ["0", "1", "2", "3", "4", "5", "6", "7", "8"],
|
||||
"datasets": [{
|
||||
"backgroundColor": "rgba(255, 0, 0, 0.25)",
|
||||
"data": ["NaN", "NaN", 0, -1, 0, 1, 0, -1, 0],
|
||||
"fill": 1
|
||||
}, {
|
||||
"backgroundColor": "rgba(0, 255, 0, 0.25)",
|
||||
"data": [1, 0, "NaN", 1, 0, "NaN", -1, 0, 1],
|
||||
"fill": "+1"
|
||||
}, {
|
||||
"backgroundColor": "rgba(0, 0, 255, 0.25)",
|
||||
"data": [0, 2, 0, -2, 0, 2, 0],
|
||||
"fill": 3
|
||||
}, {
|
||||
"backgroundColor": "rgba(255, 0, 255, 0.25)",
|
||||
"data": [2, 0, -2, 0, 2, 0, -2, 0, 2],
|
||||
"fill": "-2"
|
||||
}, {
|
||||
"backgroundColor": "rgba(255, 255, 0, 0.25)",
|
||||
"data": [3, 1, -1, -3, -1, 1, 3, 1, -1],
|
||||
"fill": "-1"
|
||||
}]
|
||||
},
|
||||
"options": {
|
||||
"responsive": false,
|
||||
"legend": false,
|
||||
"title": false,
|
||||
"scale": {
|
||||
"display": false
|
||||
},
|
||||
"elements": {
|
||||
"point": {
|
||||
"radius": 0
|
||||
},
|
||||
"line": {
|
||||
"borderColor": "transparent",
|
||||
"tension": 0.5
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"options": {
|
||||
"canvas": {
|
||||
"height": 256,
|
||||
"width": 256
|
||||
}
|
||||
}
|
||||
}
|
||||
BIN
test/fixtures/plugin.filler/fill-radar-dataset-spline.png
vendored
Normal file
|
After Width: | Height: | Size: 19 KiB |
52
test/fixtures/plugin.filler/fill-radar-dataset.json
vendored
Normal file
@@ -0,0 +1,52 @@
|
||||
{
|
||||
"config": {
|
||||
"type": "radar",
|
||||
"data": {
|
||||
"labels": ["0", "1", "2", "3", "4", "5", "6", "7", "8"],
|
||||
"datasets": [{
|
||||
"backgroundColor": "rgba(255, 0, 0, 0.25)",
|
||||
"data": ["NaN", "NaN", 0, -1, 0, 1, 0, -1, 0],
|
||||
"fill": 1
|
||||
}, {
|
||||
"backgroundColor": "rgba(0, 255, 0, 0.25)",
|
||||
"data": [1, 0, "NaN", 1, 0, "NaN", -1, 0, 1],
|
||||
"fill": "+1"
|
||||
}, {
|
||||
"backgroundColor": "rgba(0, 0, 255, 0.25)",
|
||||
"data": [0, 2, 0, -2, 0, 2, 0],
|
||||
"fill": 3
|
||||
}, {
|
||||
"backgroundColor": "rgba(255, 0, 255, 0.25)",
|
||||
"data": [2, 0, -2, 0, 2, 0, -2, 0, 2],
|
||||
"fill": "-2"
|
||||
}, {
|
||||
"backgroundColor": "rgba(255, 255, 0, 0.25)",
|
||||
"data": [3, 1, -1, -3, -1, 1, 3, 1, -1],
|
||||
"fill": "-1"
|
||||
}]
|
||||
},
|
||||
"options": {
|
||||
"responsive": false,
|
||||
"legend": false,
|
||||
"title": false,
|
||||
"scale": {
|
||||
"display": false
|
||||
},
|
||||
"elements": {
|
||||
"point": {
|
||||
"radius": 0
|
||||
},
|
||||
"line": {
|
||||
"borderColor": "transparent",
|
||||
"tension": 0
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"options": {
|
||||
"canvas": {
|
||||
"height": 256,
|
||||
"width": 256
|
||||
}
|
||||
}
|
||||
}
|
||||
BIN
test/fixtures/plugin.filler/fill-radar-dataset.png
vendored
Normal file
|
After Width: | Height: | Size: 18 KiB |