diff --git a/public/app/plugins/panel/timeseries/LineStyleEditor.tsx b/public/app/plugins/panel/timeseries/LineStyleEditor.tsx index d797c432ed6..93d2536228e 100644 --- a/public/app/plugins/panel/timeseries/LineStyleEditor.tsx +++ b/public/app/plugins/panel/timeseries/LineStyleEditor.tsx @@ -73,9 +73,16 @@ export const LineStyleEditor: React.FC> value={value?.fill || 'solid'} options={lineFillOptions} onChange={(v) => { + let dash: number[] | undefined = undefined; + if (v === 'dot') { + dash = parseText(dotOptions[0].value!); + } else if (v === 'dash') { + dash = parseText(dashOptions[0].value!); + } onChange({ ...value, fill: v!, + dash, }); }} />