Skip to content

Commit

Permalink
Update echarts library and dynamically set aria text
Browse files Browse the repository at this point in the history
  • Loading branch information
Brandon32 committed Dec 17, 2024
1 parent 29d2f87 commit 7c522a5
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 11 deletions.
4 changes: 4 additions & 0 deletions libs/blocks/chart/chart.js
Original file line number Diff line number Diff line change
Expand Up @@ -387,6 +387,10 @@ export const getChartOptions = ({
inactiveColor: '#6C6C6C',
type: 'scroll',
},
aria: {
enabled: true,
general: { withTitle: isDonut ? 'This is a chart' : 'The chart title is {title}' },
},
title: isDonut ? donutTitleOptions(source, series, yUnits[0], size) : {},
tooltip: {
show: true,
Expand Down
4 changes: 2 additions & 2 deletions libs/deps/echarts.common.min.js

Large diffs are not rendered by default.

16 changes: 8 additions & 8 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
"chai": "^5.1.1",
"chalk": "^4.1.2",
"commander": "^12.1.0",
"echarts": "^5.3.3",
"echarts": "^5.5.1",
"eslint": "8.11.0",
"eslint-config-airbnb-base": "15.0.0",
"eslint-nibble": "^8.1.0",
Expand Down

0 comments on commit 7c522a5

Please sign in to comment.