Files
oa/src/data/dashboards/ecommerce/shippingCharts.ts
2025-05-24 01:49:48 +09:00

81 lines
1.4 KiB
TypeScript

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,
}
}