diff --git a/frontend/src/views/chart/chart/chart.js b/frontend/src/views/chart/chart/chart.js index fecdd4fdac..4b98b8af2d 100644 --- a/frontend/src/views/chart/chart/chart.js +++ b/frontend/src/views/chart/chart/chart.js @@ -17,6 +17,7 @@ export const DEFAULT_SIZE = { funnelWidth: 80 } export const DEFAULT_TITLE_STYLE = { + show: true, fontSize: '18', color: '#000000', hPosition: 'center', diff --git a/frontend/src/views/chart/chart/common/common.js b/frontend/src/views/chart/chart/common/common.js index 97d99c5919..3c764bb830 100644 --- a/frontend/src/views/chart/chart/common/common.js +++ b/frontend/src/views/chart/chart/common/common.js @@ -2,6 +2,7 @@ export function componentStyle(chart_option, chart) { if (chart.customStyle) { const customStyle = JSON.parse(chart.customStyle) if (customStyle.text) { + chart_option.title.show = customStyle.text.show chart_option.title.left = customStyle.text.hPosition chart_option.title.top = customStyle.text.vPosition const style = chart_option.title.textStyle ? chart_option.title.textStyle : {} diff --git a/frontend/src/views/chart/components/component_style/TitleSelector.vue b/frontend/src/views/chart/components/component_style/TitleSelector.vue index 80cae71733..6c38e0e5f5 100644 --- a/frontend/src/views/chart/components/component_style/TitleSelector.vue +++ b/frontend/src/views/chart/components/component_style/TitleSelector.vue @@ -8,6 +8,9 @@ > + + {{ $t('chart.show') }} +