| @@ -361,12 +361,12 @@ export default function DeliveryChartPage() { | |||||
| </Typography> | </Typography> | ||||
| <ApexCharts | <ApexCharts | ||||
| options={{ | options={{ | ||||
| chart: { type: "bar" }, | |||||
| chart: { type: "bar", stacked: true }, | |||||
| xaxis: { | xaxis: { | ||||
| categories: Array.from(new Set(chartData.staffPerf.map((r) => r.date))).sort(), | categories: Array.from(new Set(chartData.staffPerf.map((r) => r.date))).sort(), | ||||
| }, | }, | ||||
| yaxis: { title: { text: "單數" } }, | yaxis: { title: { text: "單數" } }, | ||||
| plotOptions: { bar: { columnWidth: "60%", stacked: true } }, | |||||
| plotOptions: { bar: { columnWidth: "60%" } }, | |||||
| dataLabels: { enabled: false }, | dataLabels: { enabled: false }, | ||||
| legend: { position: "top" }, | legend: { position: "top" }, | ||||
| }} | }} | ||||
| @@ -329,10 +329,10 @@ export default function WarehouseChartPage() { | |||||
| ) : chartData.consumptionByItems ? ( | ) : chartData.consumptionByItems ? ( | ||||
| <ApexCharts | <ApexCharts | ||||
| options={{ | options={{ | ||||
| chart: { type: "bar" }, | |||||
| chart: { type: "bar", stacked: false }, | |||||
| xaxis: { categories: chartData.consumptionByItems.months }, | xaxis: { categories: chartData.consumptionByItems.months }, | ||||
| yaxis: { title: { text: "出庫量" } }, | yaxis: { title: { text: "出庫量" } }, | ||||
| plotOptions: { bar: { columnWidth: "60%", stacked: false } }, | |||||
| plotOptions: { bar: { columnWidth: "60%" } }, | |||||
| dataLabels: { enabled: false }, | dataLabels: { enabled: false }, | ||||
| legend: { position: "top" }, | legend: { position: "top" }, | ||||
| }} | }} | ||||