From bd1996a33923b2ee0b55f668ed21e65a236d128a Mon Sep 17 00:00:00 2001 From: frankknoll Date: Mon, 17 Apr 2023 14:32:47 +0200 Subject: [PATCH] adding labels to AdverseReactionReportsChartView --- docs/AdverseReactionReportsChartView.js | 8 +++++++- docs/GoogleAnalytics.js | 13 +++++++------ docs/batchCodeTable.html | 9 +++++---- src/help.txt | 2 ++ 4 files changed, 21 insertions(+), 11 deletions(-) diff --git a/docs/AdverseReactionReportsChartView.js b/docs/AdverseReactionReportsChartView.js index d214eebd8c5..13be8ec6d1e 100644 --- a/docs/AdverseReactionReportsChartView.js +++ b/docs/AdverseReactionReportsChartView.js @@ -14,8 +14,8 @@ class AdverseReactionReportsChartView { this.#chart = new Chart( this.#canvas, { - // FK-TODO: use a Polar Area Chart ('polarArea') or bar chart type: 'bar', + plugins: [ChartDataLabels], data: this.#getData(ADRDescr), options: this.#getOptions() }); @@ -51,6 +51,12 @@ class AdverseReactionReportsChartView { #getOptions() { return { + plugins: { + datalabels: { + anchor: 'end', + align: 'top' + } + }, title: { display: true, position: 'top' diff --git a/docs/GoogleAnalytics.js b/docs/GoogleAnalytics.js index caa69c93840..72efd7787cd 100644 --- a/docs/GoogleAnalytics.js +++ b/docs/GoogleAnalytics.js @@ -1,11 +1,12 @@ class GoogleAnalytics { static click_batchcode(batchcode) { - gtag( - 'event', - 'click_batchcode', - { - 'batchcode': batchcode - }); + // FK-TODO: reinsert + // gtag( + // 'event', + // 'click_batchcode', + // { + // 'batchcode': batchcode + // }); } } diff --git a/docs/batchCodeTable.html b/docs/batchCodeTable.html index be37361c13f..1a96d86c62a 100644 --- a/docs/batchCodeTable.html +++ b/docs/batchCodeTable.html @@ -9,14 +9,15 @@ Batch Codes of Coronavirus 2019 Vaccines - + + @@ -14948,12 +14949,12 @@ + - - diff --git a/src/help.txt b/src/help.txt index 72fc8945b8e..2b9c9109ae7 100644 --- a/src/help.txt +++ b/src/help.txt @@ -4,6 +4,8 @@ FK-FIXME: FK-TODO: - add google captcha to batchCodeTable.html +- "Frequencies of Reported Symptoms" als Tabelle (datatables) darstellen +- aus den Json-Dateien lethality und severity entfernen. anacron job: sudo cp src/intensivstationen_howbadismybatch.sh /etc/cron.daily/intensivstationen_howbadismybatch