From 234d2acf1413a35fbc02735601ae0496f88dd0b1 Mon Sep 17 00:00:00 2001
From: Janak Pandya <27110070@students.lincoln.ac.uk>
Date: Mon, 8 May 2023 13:57:57 +0100
Subject: [PATCH] ASEA2-12 created apexchart polar area chart
---
production/apexcharts.html | 68 ++++++++++++++++++++++++++++++++++++++
1 file changed, 68 insertions(+)
diff --git a/production/apexcharts.html b/production/apexcharts.html
index 06b5b7dd..4e70c164 100644
--- a/production/apexcharts.html
+++ b/production/apexcharts.html
@@ -422,6 +422,32 @@
+
+
@@ -664,6 +690,46 @@
};
+ polarareachartoptions = {
+ series: [42, 47, 52, 58, 65],
+ colors: ["#003c4e"],
+ chart: {
+ width: 380,
+ type: 'polarArea'
+ },
+ labels: ['Rose A', 'Rose B', 'Rose C', 'Rose D', 'Rose E'],
+ fill: {
+ opacity: 1
+ },
+ stroke: {
+ width: 1,
+ colors: undefined
+ },
+ yaxis: {
+ show: false
+ },
+ legend: {
+ position: 'bottom'
+ },
+ plotOptions: {
+ polarArea: {
+ rings: {
+ strokeWidth: 0
+ },
+ spokes: {
+ strokeWidth: 0
+ },
+ }
+ },
+ theme: {
+ monochrome: {
+ enabled: true,
+ shadeTo: 'light',
+ shadeIntensity: 0.6
+ }
+ }
+ };
+
@@ -672,12 +738,14 @@
var columnchart = new ApexCharts(document.querySelector("#columnChart"), columnchartoptions);
var barchart = new ApexCharts(document.querySelector("#barChart"), barchartoptions);
var piechart = new ApexCharts(document.querySelector("#pieChart"), piechartoptions);
+ var polarareachart = new ApexCharts(document.querySelector("#polarareaChart"), polarareachartoptions);
linechart.render();
areachart.render();
columnchart.render();
barchart.render();
piechart.render();
+ polarareachart.render();