mirror of
https://github.com/chartjs/Chart.js.git
synced 2025-12-08 20:36:08 +00:00
Fix radius 0
This commit is contained in:
parent
1bebda87f6
commit
f5a2e394c8
@ -60,14 +60,14 @@ module.exports = function(Chart) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (vm.radius > 0 || vm.borderWidth > 0) {
|
||||
if (!isNaN(vm.radius) && vm.radius > 0) {
|
||||
|
||||
ctx.strokeStyle = vm.borderColor || Chart.defaults.global.defaultColor;
|
||||
ctx.lineWidth = vm.borderWidth || Chart.defaults.global.elements.point.borderWidth;
|
||||
ctx.lineWidth = helpers.getValueOrDefault(vm.borderWidth, Chart.defaults.global.elements.point.borderWidth);
|
||||
|
||||
ctx.fillStyle = vm.backgroundColor || Chart.defaults.global.defaultColor;
|
||||
|
||||
var radius = vm.radius || Chart.defaults.global.elements.point.radius;
|
||||
var radius = vm.radius;
|
||||
|
||||
var xOffset;
|
||||
var yOffset;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user