Bar charts (#89)

* Bar charts

* Update package.json
This commit is contained in:
Adrian O.V
2023-08-21 15:55:50 -04:00
committed by GitHub
parent e1f4d791ae
commit a7191e8efb
6 changed files with 151 additions and 6 deletions

View File

@@ -42,7 +42,7 @@ const chartData = ref({
labels: props.data.labels.map((date) => props.formatLabels(date)),
datasets: props.data.data.map((project) => ({
label: project.title,
backgroundColor: decimalToRgba(project.color, 0.75),
backgroundColor: decimalToRgba(project.color, 0.5),
borderColor: decimalToRgba(project.color),
data: project.data,
})),
@@ -69,7 +69,9 @@ const chartOptions = ref({
},
},
interaction: {
mode: 'x',
mode: 'index',
intersect: false,
axis: 'xy',
},
plugins: {
legend: {