Skip to content

Commit

Permalink
feat: add fields set to clustered chart
Browse files Browse the repository at this point in the history
  • Loading branch information
AlasDiablo committed Dec 8, 2023
1 parent 57f9eaf commit 3ffade6
Showing 1 changed file with 20 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { polyglot as polyglotPropTypes } from '../../../../propTypes';
import ColorPickerParamsAdmin from '../../../shared/ColorPickerParamsAdmin';
import { MONOCHROMATIC_DEFAULT_COLORSET } from '../../../colorUtils';
import updateAdminArgs from '../../../shared/updateAdminArgs';
import { VegaChartParamsFieldSet } from '../../../vega-utils/components/VegaFieldSet';

export const defaultArgs = {
colors: MONOCHROMATIC_DEFAULT_COLORSET,
Expand Down Expand Up @@ -35,23 +36,25 @@ const ClusteredChartAdmin = props => {
justifyContent="space-between"
gap={2}
>
<ColorPickerParamsAdmin
colors={colors}
onChange={handleColors}
polyglot={p}
/>
<TextField
fullWidth
label={p.t('format_x_axis_title')}
onChange={handleXAxisTitle}
value={xTitle}
/>
<TextField
fullWidth
label={p.t('format_y_axis_title')}
onChange={handleYAxisTitle}
value={yTitle}
/>
<VegaChartParamsFieldSet>
<ColorPickerParamsAdmin
colors={colors}
onChange={handleColors}
polyglot={p}
/>
<TextField
fullWidth
label={p.t('format_x_axis_title')}
onChange={handleXAxisTitle}
value={xTitle}
/>
<TextField
fullWidth
label={p.t('format_y_axis_title')}
onChange={handleYAxisTitle}
value={yTitle}
/>
</VegaChartParamsFieldSet>
</Box>
);
};
Expand Down

0 comments on commit 3ffade6

Please sign in to comment.