feat(plugin-chart-echarts): add aggregate total for the Pie/Donuct chart (#19622)

This commit is contained in:
Stephen Liu
2022-04-11 13:56:45 +08:00
committed by GitHub
parent b45f89b954
commit a6bf041edd
2 changed files with 89 additions and 2 deletions

View File

@@ -183,6 +183,18 @@ const config: ControlPanelConfig = {
},
},
],
[
{
name: 'show_total',
config: {
type: 'CheckboxControl',
label: t('Show Total'),
default: false,
renderTrigger: true,
description: t('Whether to display the aggregate count'),
},
},
],
// eslint-disable-next-line react/jsx-key
[<h1 className="section-header">{t('Pie shape')}</h1>],
[