Skip to content

Commit

Permalink
fix: do not return a chart type for single value because it does not …
Browse files Browse the repository at this point in the history
…correspond to a highcharts chart type
  • Loading branch information
HendrikThePendric committed Sep 11, 2024
1 parent 4e6fc32 commit f39093a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/visualizations/config/adapters/dhis_highcharts/type.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import {
VIS_TYPE_STACKED_COLUMN,
VIS_TYPE_YEAR_OVER_YEAR_COLUMN,
VIS_TYPE_SCATTER,
VIS_TYPE_SINGLE_VALUE,
} from '../../../../modules/visTypes.js'

export default function (type) {
Expand All @@ -33,6 +34,8 @@ export default function (type) {
return { type: 'solidgauge' }
case VIS_TYPE_SCATTER:
return { type: 'scatter', zoomType: 'xy' }
case VIS_TYPE_SINGLE_VALUE:
return {}
case VIS_TYPE_COLUMN:
case VIS_TYPE_STACKED_COLUMN:
case VIS_TYPE_YEAR_OVER_YEAR_COLUMN:
Expand Down

0 comments on commit f39093a

Please sign in to comment.