You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by jl...@apache.org on 2024/12/12 23:08:41 UTC
(superset) 04/05: fix(histogram): axis margin padding consistent with other graphs (#31335)
This is an automated email from the ASF dual-hosted git repository.
jli pushed a commit to branch 4.1
in repository https://gitbox.apache.org/repos/asf/superset.git
commit b40a819377de56b992da80b9a4c5347ebc9c6ce9
Author: Tatiana Cherne <12...@users.noreply.github.com>
AuthorDate: Mon Dec 9 15:03:22 2024 -0500
fix(histogram): axis margin padding consistent with other graphs (#31335)
Co-authored-by: Evan Rusackas <ev...@preset.io>
(cherry picked from commit 73d21a87ae11ecf36619e2f3adb42549fef6df75)
---
.../src/Histogram/controlPanel.tsx | 24 ++--------------------
1 file changed, 2 insertions(+), 22 deletions(-)
diff --git a/superset-frontend/plugins/plugin-chart-echarts/src/Histogram/controlPanel.tsx b/superset-frontend/plugins/plugin-chart-echarts/src/Histogram/controlPanel.tsx
index 59a7de2825..a347694f1b 100644
--- a/superset-frontend/plugins/plugin-chart-echarts/src/Histogram/controlPanel.tsx
+++ b/superset-frontend/plugins/plugin-chart-echarts/src/Histogram/controlPanel.tsx
@@ -27,6 +27,7 @@ import {
formatSelectOptionsForRange,
dndGroupByControl,
columnsByType,
+ sections,
} from '@superset-ui/chart-controls';
import { showLegendControl, showValueControl } from '../controls';
@@ -104,6 +105,7 @@ const config: ControlPanelConfig = {
],
],
},
+ sections.titleControls,
{
label: t('Chart Options'),
expanded: true,
@@ -111,28 +113,6 @@ const config: ControlPanelConfig = {
['color_scheme'],
[showValueControl],
[showLegendControl],
- [
- {
- name: 'x_axis_title',
- config: {
- type: 'TextControl',
- label: t('X Axis Title'),
- renderTrigger: true,
- default: '',
- },
- },
- ],
- [
- {
- name: 'y_axis_title',
- config: {
- type: 'TextControl',
- label: t('Y Axis Title'),
- renderTrigger: true,
- default: '',
- },
- },
- ],
],
},
],