mirror of
https://github.com/chartjs/Chart.js.git
synced 2024-10-09 05:39:06 +02:00
a0a195f353
* added 'angle' option to polar charts. image comparison test is work in progress; not currently passing * removed unnecessary variable assignment * code cleanup based on PR; for 'angle' option on polarCharts * Made polar chart image comparison test pass by removing debug flag. Also explicitly marked _computeAngle as private. * Removed visibleCount computation in polar chart * split out code related to updating the radius in polar chart's update function, into it's own 'updateRadius' function * made updateRadius method private * fix linting error * updated polar charts to read custom angles from "chart.options.elements.arc.angle" instead of "chart.options.angle"
28 lines
748 B
JSON
28 lines
748 B
JSON
{
|
|
"config": {
|
|
"type": "polarArea",
|
|
"data": {
|
|
"labels": ["A", "B", "C", "D", "E"],
|
|
"datasets": [{
|
|
"data": [11, 16, 21, 7, 10],
|
|
"backgroundColor": [
|
|
"rgba(255, 99, 132, 0.8)",
|
|
"rgba(54, 162, 235, 0.8)",
|
|
"rgba(255, 206, 86, 0.8)",
|
|
"rgba(75, 192, 192, 0.8)",
|
|
"rgba(153, 102, 255, 0.8)",
|
|
"rgba(255, 159, 64, 0.8)"
|
|
]
|
|
}]
|
|
},
|
|
"options": {
|
|
"responsive": false,
|
|
"legend": false,
|
|
"title": false,
|
|
"scale": {
|
|
"display": false
|
|
}
|
|
}
|
|
}
|
|
}
|