From 7ed66f56010507a9f63b1dce4851327db28812db Mon Sep 17 00:00:00 2001 From: aron Date: Wed, 28 Feb 2024 13:13:45 +0000 Subject: [PATCH] Update charts --- .../components/Design/LayoutComponentForm.vue | 2 +- .../components/Design/designer-components.ts | 498 +++++++++++++++++- 2 files changed, 471 insertions(+), 29 deletions(-) diff --git a/frontend/src/components/Design/LayoutComponentForm.vue b/frontend/src/components/Design/LayoutComponentForm.vue index 4a87f079c..fcd25d465 100644 --- a/frontend/src/components/Design/LayoutComponentForm.vue +++ b/frontend/src/components/Design/LayoutComponentForm.vue @@ -57,7 +57,7 @@
- + +
${form.chart.caption}
+ `) + }; + } else if (form.chart.chartType == "pie") { + return { + html: trimLeadingWhitespace(` +
+ +
${form.chart.caption}
+
`) + }; + } else if (form.chart.chartType == "doughnut") { + return { + html: trimLeadingWhitespace(` +
+ +
${form.chart.caption}
+
`) + }; + } else if (form.chart.chartType == "polarArea") { + return { + html: trimLeadingWhitespace(` +
+ +
${form.chart.caption}
+
`) + }; + } else if (form.chart.chartType == "radar") { + return { + html: trimLeadingWhitespace(` +
+ -
${form.chart.caption}
-
- `) - }; +
${form.chart.caption}
+ `) + }; + } else { + // horizontal bar or line + return { + html: trimLeadingWhitespace(` +
+ +
${form.chart.caption}
+
`) + }; + } } }