Update DonutChart.js
Code quality fixes
This commit is contained in:
parent
8d00770207
commit
3e6d7cebf8
@ -32,7 +32,10 @@ export default class DonutChart extends AggregationChart {
|
||||
calc() {
|
||||
super.calc();
|
||||
let s = this.state;
|
||||
this.radius = (this.height > this.width ? this.center.x - (this.strokeWidth / 2) : this.center.y - (this.strokeWidth / 2));
|
||||
this.radius =
|
||||
this.height > this.width
|
||||
? this.center.x - this.strokeWidth / 2
|
||||
: this.center.y - this.strokeWidth / 2;
|
||||
|
||||
const { radius, clockWise } = this;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user