diff --git a/ember-apache-echarts/src/helpers/css-size.js b/ember-apache-echarts/src/helpers/css-size.js index a014f53e..745cacd9 100644 --- a/ember-apache-echarts/src/helpers/css-size.js +++ b/ember-apache-echarts/src/helpers/css-size.js @@ -27,5 +27,5 @@ export default helper(function cssSize(positional /*, named*/) { ? size.toString() !== '0' ? `${size}px` : '0' - : size ?? '0'; + : (size ?? '0'); }); diff --git a/ember-apache-echarts/src/modifiers/bar-chart.js b/ember-apache-echarts/src/modifiers/bar-chart.js index 6ec48f6c..f8856cf2 100644 --- a/ember-apache-echarts/src/modifiers/bar-chart.js +++ b/ember-apache-echarts/src/modifiers/bar-chart.js @@ -448,10 +448,10 @@ export default class BarChartModifier extends AbstractChartModifier { categoryAxisScale === 'shared' ? context.data.categories[dataIndex] : series.data[dataIndex] - ? series.data[dataIndex][ - args.categoryProperty ?? DEFAULT_CATEGORY_PROPERTY - ] - : null; + ? series.data[dataIndex][ + args.categoryProperty ?? DEFAULT_CATEGORY_PROPERTY + ] + : null; if (name) { chart.dispatchAction({ diff --git a/ember-apache-echarts/src/utils/style/resolve-style.js b/ember-apache-echarts/src/utils/style/resolve-style.js index d45202cc..9206b0c1 100644 --- a/ember-apache-echarts/src/utils/style/resolve-style.js +++ b/ember-apache-echarts/src/utils/style/resolve-style.js @@ -34,8 +34,8 @@ function resolveStyle(style, context) { isPixelDimension.test(value) ? parseFloat(value.slice(0, -2)) : isPercentDimension.test(value) - ? resolvePercentDimension(value, property, context) - : value + ? resolvePercentDimension(value, property, context) + : value ); }