diff --git a/ui/src/views/admin/listForm/edit/options.ts b/ui/src/views/admin/listForm/edit/options.ts
index 36ee2f68..333b8b7f 100644
--- a/ui/src/views/admin/listForm/edit/options.ts
+++ b/ui/src/views/admin/listForm/edit/options.ts
@@ -247,29 +247,29 @@ export const chartPaletteExtensionModeOptions = [
]
export const chartSeriesTypeOptions = [
- { value: 'line', label: 'Line' },
- { value: 'stepline', label: 'Stepline' },
- { value: 'bar', label: 'Bar' },
- { value: 'fullstackedbar', label: 'Fullstackedbar' },
- { value: 'rangebar', label: 'Rangebar' },
- { value: 'rangearea', label: 'Rangearea' },
- { value: 'fullstackedarea', label: 'Fullstackedarea' },
- { value: 'area', label: 'Area' },
- { value: 'bubble', label: 'Bubble' },
- { value: 'candlestick', label: 'Candlestick' },
- { value: 'fullstackedline', label: 'Fullstackedline' },
- { value: 'fullstackedspline', label: 'Fullstackedspline' },
- { value: 'fullstackedsplinearea', label: 'Fullstackedsplinearea' },
- { value: 'scatter', label: 'Scatter' },
- { value: 'spline', label: 'Spline' },
- { value: 'splinearea', label: 'Splinearea' },
- { value: 'stackedarea', label: 'Stackedarea' },
- { value: 'stackedbar', label: 'Stackedbar' },
- { value: 'stackedline', label: 'Stackedline' },
- { value: 'stackedspline', label: 'Stackedspline' },
- { value: 'stackedsplinearea', label: 'Stackedsplinearea' },
- { value: 'steparea', label: 'Steparea' },
- { value: 'stock', label: 'Stock' },
+ { value: 'line', label: 'Line', icon: 'π' },
+ { value: 'stepline', label: 'Stepline', icon: 'π' },
+ { value: 'bar', label: 'Bar', icon: 'π' },
+ { value: 'fullstackedbar', label: 'Fullstacked Bar', icon: 'π' },
+ { value: 'rangebar', label: 'Range Bar', icon: 'π' },
+ { value: 'rangearea', label: 'Range Area', icon: 'πΊοΈ' },
+ { value: 'fullstackedarea', label: 'Fullstacked Area', icon: 'β°οΈ' },
+ { value: 'area', label: 'Area', icon: 'ποΈ' },
+ { value: 'bubble', label: 'Bubble', icon: 'π«§' },
+ { value: 'candlestick', label: 'Candlestick', icon: 'π―οΈ' },
+ { value: 'fullstackedline', label: 'Fullstacked Line', icon: 'πΆ' },
+ { value: 'fullstackedspline', label: 'Fullstacked Spline', icon: 'γ°οΈπΆ' },
+ { value: 'fullstackedsplinearea', label: 'Fullstacked Spline Area', icon: 'β°οΈγ°' },
+ { value: 'scatter', label: 'Scatter', icon: 'π΅' },
+ { value: 'spline', label: 'Spline', icon: 'γ°οΈ' },
+ { value: 'splinearea', label: 'Spline Area', icon: 'π' },
+ { value: 'stackedarea', label: 'Stacked Area', icon: 'π§±β°οΈ' },
+ { value: 'stackedbar', label: 'Stacked Bar', icon: 'π§±π' },
+ { value: 'stackedline', label: 'Stacked Line', icon: 'π§±π' },
+ { value: 'stackedspline', label: 'Stacked Spline', icon: 'π§±γ°οΈ' },
+ { value: 'stackedsplinearea', label: 'Stacked Spline Area', icon: 'π§±π' },
+ { value: 'steparea', label: 'Step Area', icon: 'πͺ' },
+ { value: 'stock', label: 'Stock', icon: 'πΉ' },
]
export const chartSeriesSelectionModeOptions = [
diff --git a/ui/src/views/list/ChartDrawer.tsx b/ui/src/views/list/ChartDrawer.tsx
index 251ed253..36d94302 100644
--- a/ui/src/views/list/ChartDrawer.tsx
+++ b/ui/src/views/list/ChartDrawer.tsx
@@ -2,7 +2,7 @@ import { Button, FormContainer, Input, Notification, Select, toast } from '@/com
import { Field, FieldArray, Form, Formik, FieldProps } from 'formik'
import { FaMinus, FaPlus, FaTimes, FaSave } from 'react-icons/fa'
import { SelectBoxOption } from '@/types/shared'
-import { columnSummaryTypeListOptions } from '../admin/listForm/edit/options'
+import { chartSeriesTypeOptions, columnSummaryTypeListOptions } from '../admin/listForm/edit/options'
import { ChartSeriesDto } from '@/proxy/admin/charts/models'
import { useLocalization } from '@/utils/hooks/useLocalization'
import { useStoreState } from '@/store/store'
@@ -35,24 +35,15 @@ const ChartDrawer = ({
series: array().of(
object().shape({
name: string().required(translate('::App.Platform.ChartDrawer.NameRequired')),
- argumentField: string().required(translate('::App.Platform.ChartDrawer.ArgumentFieldRequired')),
+ argumentField: string().required(
+ translate('::App.Platform.ChartDrawer.ArgumentFieldRequired'),
+ ),
valueField: string().required(translate('::App.Platform.ChartDrawer.ValueFieldRequired')),
summaryType: string().required(translate('::App.Platform.ChartDrawer.SummaryTypeRequired')),
}),
),
})
- // Chart type icons
- const chartTypeIcons = [
- { type: 'line', label: 'Line', icon: 'π' },
- { type: 'bar', label: 'Bar', icon: 'π' },
- { type: 'area', label: 'Area', icon: 'ποΈ' },
- { type: 'scatter', label: 'Scatter', icon: 'π΅' },
- { type: 'spline', label: 'Spline', icon: 'γ°οΈ' },
- { type: 'stackedbar', label: 'Stacked Bar', icon: 'π' },
- { type: 'stackedarea', label: 'Stacked Area', icon: 'β°οΈ' },
- ]
-
const newSeriesValue = () => {
return {
index: -1,
@@ -111,9 +102,14 @@ const ChartDrawer = ({
onSubmit={async (values, { setSubmitting }) => {
try {
await onSave(values.series)
- toast.push(