@@ -1233,10 +1233,10 @@ class Chart extends ResizeMixin(ElementMixin(ThemableMixin(PolymerElement))) {
12331233 if ( attr . indexOf ( '_fn_' ) === 0 && ( typeof targetProperty === 'string' || targetProperty instanceof String ) ) {
12341234 try {
12351235 // eslint-disable-next-line no-eval
1236- jsonConfiguration [ attr . substr ( 4 ) ] = eval ( '(' + targetProperty + ')' ) ;
1236+ jsonConfiguration [ attr . substr ( 4 ) ] = eval ( `( ${ targetProperty } )` ) ;
12371237 } catch ( e ) {
12381238 // eslint-disable-next-line no-eval
1239- jsonConfiguration [ attr . substr ( 4 ) ] = eval ( ' (function(){' + targetProperty + '})' ) ;
1239+ jsonConfiguration [ attr . substr ( 4 ) ] = eval ( ` (function(){${ targetProperty } })` ) ;
12401240 }
12411241 delete jsonConfiguration [ attr ] ;
12421242 } else if ( targetProperty instanceof Object ) {
@@ -1353,12 +1353,11 @@ class Chart extends ResizeMixin(ElementMixin(ThemableMixin(PolymerElement))) {
13531353
13541354 // Zoom out a bit to avoid clipping the chart's edge on paper
13551355 effectiveCss =
1356- effectiveCss +
1357- 'body {' +
1358- ' -moz-transform: scale(0.9, 0.9);' + // Mozilla
1359- ' zoom: 0.9;' + // Others
1360- ' zoom: 90%;' + // Webkit
1361- '}' ;
1356+ `${ effectiveCss } body {` +
1357+ ` -moz-transform: scale(0.9, 0.9);` + // Mozilla
1358+ ` zoom: 0.9;` + // Others
1359+ ` zoom: 90%;` + // Webkit
1360+ `}` ;
13621361
13631362 this . tempBodyStyle = document . createElement ( 'style' ) ;
13641363 this . tempBodyStyle . textContent = effectiveCss ;
@@ -1789,7 +1788,7 @@ class Chart extends ResizeMixin(ElementMixin(ThemableMixin(PolymerElement))) {
17891788
17901789 /** @private */
17911790 __showWarn ( propertyName , acceptedValues ) {
1792- console . warn ( ' <vaadin-chart> Acceptable values for "' + propertyName + ' " are ' + acceptedValues ) ;
1791+ console . warn ( ` <vaadin-chart> Acceptable values for "${ propertyName } " are ${ acceptedValues } ` ) ;
17931792 }
17941793
17951794 /** @private */
0 commit comments