mirror of
https://git.hmsn.ink/kospo/svcm/oa.git
synced 2026-03-20 11:33:42 +09:00
81 lines
1.4 KiB
TypeScript
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,
|
|
}
|
|
}
|