This commit is contained in:
2025-05-24 01:49:48 +09:00
commit 62abbcf4eb
2376 changed files with 325522 additions and 0 deletions

View File

@@ -0,0 +1,80 @@
export function useDemo21RadialBar() {
const themeColors = useThemeColors()
const series = shallowRef<any[]>([])
watchEffect(() => {
series.value = [76]
})
return reactive({
height: 295,
type: 'radialBar',
series,
options: {
title: {
text: 'Radial Bar Gauge',
},
chart: {
// offsetY: -20,
sparkline: {
enabled: true,
},
toolbar: {
show: false,
},
},
colors: [
themeColors.purple,
themeColors.info,
themeColors.lime,
themeColors.purple,
themeColors.orange,
],
plotOptions: {
radialBar: {
startAngle: -90,
endAngle: 90,
track: {
background: '#e7e7e7',
strokeWidth: '97%',
margin: 5, // margin is in pixels
dropShadow: {
enabled: false,
top: 2,
left: 0,
color: '#999',
opacity: 1,
blur: 2,
},
},
dataLabels: {
name: {
show: false,
},
value: {
offsetY: -2,
fontSize: '22px',
},
},
},
},
grid: {
padding: {
// top: -10
},
},
fill: {
type: 'gradient',
gradient: {
shade: 'light',
shadeIntensity: 0.1,
inverseColors: false,
opacityFrom: 1,
opacityTo: 1,
stops: [0, 50, 53, 91],
},
},
labels: ['Average Results'],
},
})
}