diff --git a/packages/core/src/axis-chart.ts b/packages/core/src/axis-chart.ts index ada3e414ce..0192549696 100644 --- a/packages/core/src/axis-chart.ts +++ b/packages/core/src/axis-chart.ts @@ -86,7 +86,7 @@ export class AxisChart extends Chart { this.model, this.services, [ - ...((this.model.getOptions().legend.visible !== false) ? [ legendComponent ] :[ ]), + ...((this.model.getOptions().legend.visible !== false) ? [ legendComponent ] : [ ]), graphFrameComponent ], { diff --git a/packages/core/src/chart.ts b/packages/core/src/chart.ts index af5467c2ee..939f12dd67 100644 --- a/packages/core/src/chart.ts +++ b/packages/core/src/chart.ts @@ -171,7 +171,7 @@ export class Chart { this.model, this.services, [ - ...((this.model.getOptions().legend.visible !== false) ? [ legendComponent ] :[ ]), + ...((this.model.getOptions().legend.visible !== false) ? [ legendComponent ] : [ ]), graphFrameComponent ], {