From 188103414aed5ac4acb05bc134bd6aa924bb56a1 Mon Sep 17 00:00:00 2001 From: "F.N. Claessen" Date: Thu, 14 Oct 2021 09:32:47 +0200 Subject: [PATCH 1/7] Add tooltip theme --- flexmeasures/ui/static/js/chart-utils.js | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 flexmeasures/ui/static/js/chart-utils.js diff --git a/flexmeasures/ui/static/js/chart-utils.js b/flexmeasures/ui/static/js/chart-utils.js new file mode 100644 index 000000000..29badfd82 --- /dev/null +++ b/flexmeasures/ui/static/js/chart-utils.js @@ -0,0 +1,3 @@ +var FlexMeasuresTooltipOptions = { + theme: 'dark' +}; \ No newline at end of file From f884b76e1b948345d3890896e70b5f82d007a3cb Mon Sep 17 00:00:00 2001 From: "F.N. Claessen" Date: Mon, 25 Oct 2021 14:38:20 +0200 Subject: [PATCH 2/7] Expand to cover other chart options --- flexmeasures/ui/static/js/chart-utils.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/flexmeasures/ui/static/js/chart-utils.js b/flexmeasures/ui/static/js/chart-utils.js index 29badfd82..0e0938127 100644 --- a/flexmeasures/ui/static/js/chart-utils.js +++ b/flexmeasures/ui/static/js/chart-utils.js @@ -1,3 +1,10 @@ var FlexMeasuresTooltipOptions = { theme: 'dark' -}; \ No newline at end of file +}; + +var FlexMeasuresChartOptions = { + mode: 'vega-lite', + renderer: 'svg', + actions: {export: true, source: true, editor: true}, + tooltip: FlexMeasuresTooltipOptions, +} From 4d98fbcce9b7e49409821bbff2d5a9aa3e4c660e Mon Sep 17 00:00:00 2001 From: "F.N. Claessen" Date: Mon, 25 Oct 2021 14:39:03 +0200 Subject: [PATCH 3/7] Use chart options in sensors UI template --- flexmeasures/ui/templates/views/sensors.html | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/flexmeasures/ui/templates/views/sensors.html b/flexmeasures/ui/templates/views/sensors.html index c8efd6c81..64cbcb318 100644 --- a/flexmeasures/ui/templates/views/sensors.html +++ b/flexmeasures/ui/templates/views/sensors.html @@ -23,6 +23,7 @@ + -