Skip to content

Commit

Permalink
adding chart title config for histogram
Browse files Browse the repository at this point in the history
  • Loading branch information
tatiana-cherne committed Dec 6, 2024
1 parent 2816a70 commit 04e7534
Showing 1 changed file with 25 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ import {
formatSelectOptionsForRange,
dndGroupByControl,
columnsByType,
sections,
} from '@superset-ui/chart-controls';
import { showLegendControl, showValueControl } from '../controls';

Expand Down Expand Up @@ -104,35 +105,37 @@ const config: ControlPanelConfig = {
],
],
},
sections.titleControls,
{
label: t('Chart Options'),
expanded: true,
controlSetRows: [

['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: '',
},
},
],
// [
// {
// 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: '',
// },
// },
// ],
],
},
],
Expand Down

0 comments on commit 04e7534

Please sign in to comment.