SBIN2010 commented on code in PR #45172:
URL: https://github.com/apache/superset/pull/45172#discussion_r4299026594
##########
superset-frontend/plugins/plugin-chart-echarts/src/utils/series.ts:
##########
@@ -919,8 +921,12 @@ export function getLegendProps(
}
: {}),
selected: legendState ?? {},
- selector: ['all', 'inverse'],
+ selector: [
+ { type: 'all', title: t('All') },
+ { type: 'inverse', title: t('Inv') },
+ ],
selectorLabel: {
+ show: showSelectorLegend,
Review Comment:
After looking into this a bit, I’ve concluded that the best way to hide it
is by using `selector: false`. When `selector: false` is set, ECharts does not
create a group of buttons and does not include it in the layout; as a result,
neither the border nor the 10px `selectorButtonGap` remains.
--
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]