Skip to content

Commit

Permalink
Merge pull request #45612 from metacosm/fix-typo
Browse files Browse the repository at this point in the history
Fix typo
  • Loading branch information
gsmet authored Jan 15, 2025
2 parents ab85028 + a9bb751 commit d8638a9
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,15 @@ class EchartsHorizontalStackedBar extends EchartsAbstractCanvas {

const sectionTitlesArray = this.sectionTitles.split(',');
const sectionValuesArray = this.sectionValues.split(',');

const option = new Object();
// Tooltip
option.tooltip = new Object();
option.tooltip.trigger = "axis";
// Legend
option.legend = new Object();
option.legend.show = false;

// Grid
option.grid = new Object();
option.grid.left = '3%';
Expand Down Expand Up @@ -86,7 +86,7 @@ class EchartsHorizontalStackedBar extends EchartsAbstractCanvas {
serie.name = title;
serie.type = 'bar';
serie.stack = 'total';
serie.data = [value],
serie.data = [value];
serie.color = color;
option.series.push(serie);
}
Expand All @@ -95,4 +95,4 @@ class EchartsHorizontalStackedBar extends EchartsAbstractCanvas {
}

}
customElements.define('echarts-horizontal-stacked-bar', EchartsHorizontalStackedBar);
customElements.define('echarts-horizontal-stacked-bar', EchartsHorizontalStackedBar);

0 comments on commit d8638a9

Please sign in to comment.