Skip to content

Commit

Permalink
fix: remove yAxis from single value highcharts config
Browse files Browse the repository at this point in the history
  • Loading branch information
HendrikThePendric committed Sep 11, 2024
1 parent b0caa6e commit c7304cf
Showing 1 changed file with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import {
isStacked,
VIS_TYPE_GAUGE,
VIS_TYPE_SCATTER,
VIS_TYPE_SINGLE_VALUE,
} from '../../../../../modules/visTypes.js'
import { getAxis } from '../../../../util/axes.js'
import { getAxisStringFromId } from '../../../../util/axisId.js'
Expand Down Expand Up @@ -148,14 +149,12 @@ function getDefault(layout, series, extraOptions) {
}

export default function (layout, series, extraOptions) {
let yAxis
switch (layout.type) {
case VIS_TYPE_SINGLE_VALUE:
return null
case VIS_TYPE_GAUGE:
yAxis = getGauge(layout, series, extraOptions.legendSets[0])
break
return getGauge(layout, series, extraOptions.legendSets[0])
default:
yAxis = getDefault(layout, series, extraOptions)
return getDefault(layout, series, extraOptions)
}

return yAxis
}

0 comments on commit c7304cf

Please sign in to comment.