diff --git a/web/storagenode/src/app/components/BaseChart.vue b/web/storagenode/src/app/components/BaseChart.vue index 94cee2434..767af5a86 100644 --- a/web/storagenode/src/app/components/BaseChart.vue +++ b/web/storagenode/src/app/components/BaseChart.vue @@ -31,6 +31,13 @@ export default class BaseChart extends Vue { chartContainer: HTMLElement; }; + /** + * Rebuilds chart after type switch. + */ + public mounted(): void { + this.rebuildChart(); + } + @Watch('width') @Watch('isDarkMode') public rebuildChart(): void {