diff --git a/dashboard/src/components/plugins/viz-components/heatmap/editors/y-axis/index.tsx b/dashboard/src/components/plugins/viz-components/heatmap/editors/y-axis/index.tsx index 09d65bba9..d07684cc0 100644 --- a/dashboard/src/components/plugins/viz-components/heatmap/editors/y-axis/index.tsx +++ b/dashboard/src/components/plugins/viz-components/heatmap/editors/y-axis/index.tsx @@ -1,4 +1,4 @@ -import { Divider, Group, Stack, TextInput } from '@mantine/core'; +import { Checkbox, Divider, Group, Stack, TextInput } from '@mantine/core'; import { Control, Controller, UseFormWatch } from 'react-hook-form'; import { useTranslation } from 'react-i18next'; import { DataFieldSelector } from '~/components/panel/settings/common/data-field-selector'; @@ -37,6 +37,22 @@ export function YAxisField({ control, watch }: IYAxisField) { render={({ field }) => } /> + ( + field.onChange(event.currentTarget.checked)} + label={t('chart.y_axis.inverse')} + styles={{ + root: { + transform: 'translateY(6px)', + }, + }} + /> + )} + />