feat: added theme setting options - dark mode, pallates

This commit is contained in:
Lexx YungCarter
2021-08-01 05:13:49 +03:00
parent 582ad340dd
commit fe0c62be75
11 changed files with 3076 additions and 2315 deletions

View File

@@ -83,6 +83,9 @@ const areaChart = () => {
bottom: 0,
}
},
theme: component.get('areaChartModel.theme') || {},
};
this.chart = new ApexCharts(this.$refs.container, options);

View File

@@ -87,6 +87,9 @@ const columnChart = () => {
fill: {
opacity: component.get('columnChartModel.opacity') || 0.5
},
theme: component.get('columnChartModel.theme') || {},
};
const colors = component.get('columnChartModel.colors');

View File

@@ -61,6 +61,8 @@ const lineChart = () => {
stroke: component.get('lineChartModel.stroke') || {},
theme: component.get('lineChartModel.theme') || {},
title: {
text: title,
align: 'center'

View File

@@ -88,6 +88,9 @@ const multiColumnChart = () => {
fill: {
opacity: component.get('columnChartModel.opacity'),
},
theme: component.get('columnChartModel.theme') || {},
};
const colors = component.get('columnChartModel.colors');

View File

@@ -74,6 +74,8 @@ const multiLineChart = () => {
},
yaxis: component.get('lineChartModel.yAxis') || {},
theme: component.get('lineChartModel.theme') || {},
};
const colors = component.get('lineChartModel.colors');

View File

@@ -72,6 +72,9 @@ const pieChart = () => {
],
legend: component.get('pieChartModel.legend') || {},
theme: component.get('pieChartModel.theme') || {},
};
const colors = component.get('pieChartModel.colors');