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,48 @@
import type { ChartOptions } from 'billboard.js'
import { area } from 'billboard.js'
export function useAreaSimpleChart() {
const themeColors = useThemeColors()
const options = ref<ChartOptions>({
data: {
type: area(),
columns: [
['data1', 300, 350, 300, 0, 0, 0],
['data2', 130, 100, 140, 200, 150, 50],
],
colors: {
data1: themeColors.purple,
data2: themeColors.lime,
data3: themeColors.info,
},
types: {
data1: 'area',
data2: 'area-spline',
},
},
size: {
height: 280,
},
padding: {
bottom: 20,
},
title: {
text: 'Area Chart',
position: 'left',
padding: {
bottom: 20,
right: 20,
top: 0,
left: 20,
},
},
legend: {
position: 'inset',
},
})
return {
options,
}
}