mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Timeseries: Fix incorrect threshold style (#87521)
This commit is contained in:
parent
80f10e2a09
commit
3d56257b34
@ -22,7 +22,7 @@ export function getThresholdsDrawHook(options: UPlotThresholdOptions) {
|
||||
options.config.mode === GraphThresholdsStyleMode.Dashed ||
|
||||
options.config.mode === GraphThresholdsStyleMode.DashedAndArea
|
||||
? [10, 10]
|
||||
: null;
|
||||
: [];
|
||||
|
||||
function addLines(u: uPlot, yScaleKey: string, steps: Threshold[], theme: GrafanaTheme2) {
|
||||
let ctx = u.ctx;
|
||||
@ -39,10 +39,7 @@ export function getThresholdsDrawHook(options: UPlotThresholdOptions) {
|
||||
}
|
||||
|
||||
ctx.lineWidth = 2;
|
||||
|
||||
if (dashSegments) {
|
||||
ctx.setLineDash(dashSegments);
|
||||
}
|
||||
ctx.setLineDash(dashSegments);
|
||||
|
||||
// Ignore the base -Infinity threshold by always starting on index 1
|
||||
for (let idx = 1; idx < steps.length; idx++) {
|
||||
|
Loading…
Reference in New Issue
Block a user