mirror of
https://git.hmsn.ink/kospo/svcm/oa.git
synced 2026-03-20 20:43:35 +09:00
first
This commit is contained in:
80
src/data/dashboards/ecommerce/shippingCharts.ts
Normal file
80
src/data/dashboards/ecommerce/shippingCharts.ts
Normal file
@@ -0,0 +1,80 @@
|
||||
export function useShippingCharts() {
|
||||
const themeColors = useThemeColors()
|
||||
const freeShippingChartOptions = shallowRef({
|
||||
series: [31],
|
||||
chart: {
|
||||
height: 102,
|
||||
type: 'radialBar',
|
||||
offsetY: -10,
|
||||
toolbar: {
|
||||
show: false,
|
||||
},
|
||||
},
|
||||
colors: [themeColors.info],
|
||||
plotOptions: {
|
||||
radialBar: {
|
||||
hollow: {
|
||||
size: '35%',
|
||||
},
|
||||
dataLabels: {
|
||||
show: false,
|
||||
},
|
||||
},
|
||||
},
|
||||
labels: [''],
|
||||
})
|
||||
|
||||
const groundShippingChartOptions = shallowRef({
|
||||
series: [53],
|
||||
chart: {
|
||||
height: 102,
|
||||
type: 'radialBar',
|
||||
offsetY: -10,
|
||||
toolbar: {
|
||||
show: false,
|
||||
},
|
||||
},
|
||||
colors: [themeColors.lime],
|
||||
plotOptions: {
|
||||
radialBar: {
|
||||
hollow: {
|
||||
size: '35%',
|
||||
},
|
||||
dataLabels: {
|
||||
show: false,
|
||||
},
|
||||
},
|
||||
},
|
||||
labels: [''],
|
||||
})
|
||||
|
||||
const nextDayAirChartOptions = shallowRef({
|
||||
series: [84],
|
||||
chart: {
|
||||
height: 102,
|
||||
type: 'radialBar',
|
||||
offsetY: -10,
|
||||
toolbar: {
|
||||
show: false,
|
||||
},
|
||||
},
|
||||
colors: [themeColors.green],
|
||||
plotOptions: {
|
||||
radialBar: {
|
||||
hollow: {
|
||||
size: '35%',
|
||||
},
|
||||
dataLabels: {
|
||||
show: false,
|
||||
},
|
||||
},
|
||||
},
|
||||
labels: [''],
|
||||
})
|
||||
|
||||
return {
|
||||
freeShippingChartOptions,
|
||||
groundShippingChartOptions,
|
||||
nextDayAirChartOptions,
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user