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 {
6161 }
6262 } ;
6363
64- const isEnabled = this . model . getOptions ( ) . legend . enabled !== false ;
64+ const isLegendEnabled = this . model . getOptions ( ) . legend . enabled !== false ;
6565
6666 // Decide the position of the legend in reference to the chart
6767 let fullFrameComponentDirection = LayoutDirection . COLUMN ;
68- if ( isEnabled ) {
68+ if ( isLegendEnabled ) {
6969 const legendPosition = Tools . getProperty ( this . model . getOptions ( ) , "legend" , "position" ) ;
7070 if ( legendPosition === LegendPositions . LEFT ) {
7171 fullFrameComponentDirection = LayoutDirection . ROW ;
@@ -102,7 +102,7 @@ export class AxisChart extends Chart {
102102 this . model ,
103103 this . services ,
104104 [
105- ...( isEnabled ? [ legendComponent ] : [ ] ) ,
105+ ...( isLegendEnabled ? [ legendComponent ] : [ ] ) ,
106106 legendSpacerComponent ,
107107 graphFrameComponent
108108 ] ,
Original file line number Diff line number Diff line change @@ -149,11 +149,11 @@ export class Chart {
149149 }
150150 } ;
151151
152- const isEnabled = this . model . getOptions ( ) . legend . enabled !== false ;
152+ const isLegendEnabled = this . model . getOptions ( ) . legend . enabled !== false ;
153153 // TODORF - REUSE BETWEEN AXISCHART & CHART
154154 // Decide the position of the legend in reference to the chart
155155 let fullFrameComponentDirection = LayoutDirection . COLUMN ;
156- if ( isEnabled ) {
156+ if ( isLegendEnabled ) {
157157 const legendPosition = Tools . getProperty ( this . model . getOptions ( ) , "legend" , "position" ) ;
158158 if ( legendPosition === "left" ) {
159159 fullFrameComponentDirection = LayoutDirection . ROW ;
@@ -190,7 +190,7 @@ export class Chart {
190190 this . model ,
191191 this . services ,
192192 [
193- ...( isEnabled ? [ legendComponent ] : [ ] ) ,
193+ ...( isLegendEnabled ? [ legendComponent ] : [ ] ) ,
194194 legendSpacerComponent ,
195195 graphFrameComponent
196196 ] ,
You can’t perform that action at this time.
0 commit comments