diff --git a/docs/assets/js/demoConfig.js b/docs/assets/js/demoConfig.js index f696dc6..0937948 100644 --- a/docs/assets/js/demoConfig.js +++ b/docs/assets/js/demoConfig.js @@ -51,4 +51,4 @@ export default { } } } -} \ No newline at end of file +}; \ No newline at end of file diff --git a/src/js/charts/DonutChart.js b/src/js/charts/DonutChart.js index a5c973f..84f5729 100644 --- a/src/js/charts/DonutChart.js +++ b/src/js/charts/DonutChart.js @@ -34,8 +34,8 @@ export default class DonutChart extends AggregationChart { let s = this.state; this.radius = this.height > this.width - ? this.center.x - this.strokeWidth / 2 - : this.center.y - this.strokeWidth / 2; + ? this.center.x - this.strokeWidth / 2 + : this.center.y - this.strokeWidth / 2; const { radius, clockWise } = this;