diff --git a/superset-frontend/plugins/plugin-chart-echarts/src/Pie/controlPanel.tsx b/superset-frontend/plugins/plugin-chart-echarts/src/Pie/controlPanel.tsx index 6e3a1ba593a2..43e1ab6cba4d 100644 --- a/superset-frontend/plugins/plugin-chart-echarts/src/Pie/controlPanel.tsx +++ b/superset-frontend/plugins/plugin-chart-echarts/src/Pie/controlPanel.tsx @@ -17,7 +17,7 @@ * under the License. */ import React from 'react'; -import { t, validateNonEmpty } from '@superset-ui/core'; +import { ensureIsInt, t, validateNonEmpty } from '@superset-ui/core'; import { ControlPanelConfig, ControlPanelsContainerProps, @@ -257,6 +257,8 @@ const config: ControlPanelConfig = { ...formData, metric: formData.standardizedFormData.standardizedState.metrics[0], groupby: formData.standardizedFormData.standardizedState.columns, + row_limit: + ensureIsInt(formData.row_limit, 100) >= 100 ? 100 : formData.row_limit, }), };