From 971259e212177e1ebcf8aa62d351ca5ba415e7ac Mon Sep 17 00:00:00 2001
From: Janak Pandya <27110070@students.lincoln.ac.uk>
Date: Mon, 8 May 2023 12:01:38 +0100
Subject: [PATCH] ASEA2-10 created apexchart bar chart
---
production/apexcharts.html | 55 ++++++++++++++++++++++++++++++++++++++
1 file changed, 55 insertions(+)
diff --git a/production/apexcharts.html b/production/apexcharts.html
index cc9b20a9..a5d8dbe9 100644
--- a/production/apexcharts.html
+++ b/production/apexcharts.html
@@ -367,6 +367,31 @@
+
@@ -561,13 +586,43 @@
}
};
+ var barchartoptions = {
+ series: [{
+ data: [400, 430, 448, 470, 540, 580, 690, 1100, 1200, 1380]
+ }],
+ chart: {
+ type: 'bar',
+ height: 350
+ },
+ colors: ["#00586c", "#00c49d"],
+ plotOptions: {
+ bar: {
+ borderRadius: 4,
+ horizontal: true,
+ }
+ },
+ dataLabels: {
+ enabled: false
+ },
+ xaxis: {
+ categories: ['South Korea', 'Canada', 'United Kingdom', 'Netherlands', 'Italy', 'France', 'Japan',
+ 'United States', 'China', 'Germany'
+ ],
+ }
+ };
+
+
+
+
var linechart = new ApexCharts(document.querySelector("#lineChart"), linechartoptions);
var areachart = new ApexCharts(document.querySelector("#areaChart"), areachartoptions);
var columnchart = new ApexCharts(document.querySelector("#columnChart"), columnchartoptions);
+ var barchart = new ApexCharts(document.querySelector("#barChart"), barchartoptions);
linechart.render();
areachart.render();
columnchart.render();
+ barchart.render();