diff --git a/src/visualizations/config/adapters/dhis_highcharts/chart.js b/src/visualizations/config/adapters/dhis_highcharts/chart.js index be264f100..c7245ccff 100644 --- a/src/visualizations/config/adapters/dhis_highcharts/chart.js +++ b/src/visualizations/config/adapters/dhis_highcharts/chart.js @@ -55,6 +55,9 @@ export default function (layout, el, extraOptions, series) { series[0] ), } + : undefined, + layout.type === VIS_TYPE_SINGLE_VALUE && extraOptions.dashboard + ? { spacingTop: 7 } : undefined ) } diff --git a/src/visualizations/config/adapters/dhis_highcharts/title/index.js b/src/visualizations/config/adapters/dhis_highcharts/title/index.js index 75000cd93..062dda95c 100644 --- a/src/visualizations/config/adapters/dhis_highcharts/title/index.js +++ b/src/visualizations/config/adapters/dhis_highcharts/title/index.js @@ -123,6 +123,10 @@ export default function (layout, metaData, extraOptions, series) { legendOptions, legendSets ) + if (dashboard) { + // TODO: is this always what we want? + title.style.fontWeight = 'normal' + } break default: title.style.color = fontStyle[FONT_STYLE_OPTION_TEXT_COLOR]