SBIN2010 commented on code in PR #45172:
URL: https://github.com/apache/superset/pull/45172#discussion_r4330031132
##########
superset-frontend/plugins/plugin-chart-echarts/src/utils/series.ts:
##########
@@ -919,7 +921,13 @@ export function getLegendProps(
}
: {}),
selected: legendState ?? {},
- selector: ['all', 'inverse'],
+ // `selector: false` omits the All/Inv group from legend layout.
+ selector: showSelectorLegend
+ ? [
+ { type: 'all', title: t('All') },
+ { type: 'inverse', title: t('Inv') },
+ ]
+ : false,
Review Comment:
Good catch; ECharts does indeed perform translation based on the locale.
Fixed.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]