File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -61,11 +61,11 @@ export class AxisChart extends Chart {
61
61
}
62
62
} ;
63
63
64
- const isEnabled = this . model . getOptions ( ) . legend . enabled !== false ;
64
+ const isLegendEnabled = this . model . getOptions ( ) . legend . enabled !== false ;
65
65
66
66
// Decide the position of the legend in reference to the chart
67
67
let fullFrameComponentDirection = LayoutDirection . COLUMN ;
68
- if ( isEnabled ) {
68
+ if ( isLegendEnabled ) {
69
69
const legendPosition = Tools . getProperty ( this . model . getOptions ( ) , "legend" , "position" ) ;
70
70
if ( legendPosition === LegendPositions . LEFT ) {
71
71
fullFrameComponentDirection = LayoutDirection . ROW ;
@@ -102,7 +102,7 @@ export class AxisChart extends Chart {
102
102
this . model ,
103
103
this . services ,
104
104
[
105
- ...( isEnabled ? [ legendComponent ] : [ ] ) ,
105
+ ...( isLegendEnabled ? [ legendComponent ] : [ ] ) ,
106
106
legendSpacerComponent ,
107
107
graphFrameComponent
108
108
] ,
Original file line number Diff line number Diff line change @@ -149,11 +149,11 @@ export class Chart {
149
149
}
150
150
} ;
151
151
152
- const isEnabled = this . model . getOptions ( ) . legend . enabled !== false ;
152
+ const isLegendEnabled = this . model . getOptions ( ) . legend . enabled !== false ;
153
153
// TODORF - REUSE BETWEEN AXISCHART & CHART
154
154
// Decide the position of the legend in reference to the chart
155
155
let fullFrameComponentDirection = LayoutDirection . COLUMN ;
156
- if ( isEnabled ) {
156
+ if ( isLegendEnabled ) {
157
157
const legendPosition = Tools . getProperty ( this . model . getOptions ( ) , "legend" , "position" ) ;
158
158
if ( legendPosition === "left" ) {
159
159
fullFrameComponentDirection = LayoutDirection . ROW ;
@@ -190,7 +190,7 @@ export class Chart {
190
190
this . model ,
191
191
this . services ,
192
192
[
193
- ...( isEnabled ? [ legendComponent ] : [ ] ) ,
193
+ ...( isLegendEnabled ? [ legendComponent ] : [ ] ) ,
194
194
legendSpacerComponent ,
195
195
graphFrameComponent
196
196
] ,
You can’t perform that action at this time.
0 commit comments