Lint frontend
Some checks failed
pipeline / lint-and-format (push) Failing after 4m18s
pipeline / build-and-push-images (push) Has been skipped

This commit is contained in:
2026-01-21 23:39:03 +01:00
parent f307e3a8fc
commit 3d79d9e495
21 changed files with 356 additions and 183 deletions

View File

@@ -6,9 +6,7 @@ import {
Legend,
BarElement,
CategoryScale,
LinearScale,
plugins,
scales
LinearScale
} from 'chart.js'
import { Bar } from 'vue-chartjs'
@@ -72,10 +70,20 @@ const chartOptions = ref({
const chartPlugins = [
{
id: 'image-draw',
afterDraw: (chart: any) => {
const ctx: CanvasRenderingContext2D = chart.ctx
const xAxis = chart.scales.x
xAxis.ticks.forEach((value: any, index: number) => {
afterDraw: (chart: unknown) => {
const ctx: CanvasRenderingContext2D = (chart as { ctx: CanvasRenderingContext2D }).ctx
const xAxis = (
chart as {
scales: {
x: {
ticks: Array<unknown>
getPixelForTick: (_index: number) => number
bottom: number
}
}
}
).scales.x
xAxis.ticks.forEach((value: unknown, index: number) => {
const x = xAxis.getPixelForTick(index)
const image = new Image()
image.src = images[index]