From 85894a18089fd5ea2d00ce2e08cfcfc8cbee7170 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20M=C3=BCller?= Date: Thu, 23 Jul 2026 19:24:52 +0200 Subject: [PATCH 1/3] =?UTF-8?q?=E2=9E=95=20Copy=20labels=20to=20clipboard?= =?UTF-8?q?=20for=20horizontal=20bar=20charts?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/chart.config.js | 4 +-- src/charts/BarChart.vue | 75 +++++++++++++++++++++++++++++++++++++++-- 2 files changed, 75 insertions(+), 4 deletions(-) diff --git a/src/chart.config.js b/src/chart.config.js index d45d617..426dfa0 100644 --- a/src/chart.config.js +++ b/src/chart.config.js @@ -17,7 +17,7 @@ import { } from 'chart.js'; import { MatrixController, MatrixElement } from 'chartjs-chart-matrix'; import 'chartjs-adapter-date-fns'; -import { color } from 'chart.js/helpers'; +import { color, getRelativePosition } from 'chart.js/helpers'; // register chart components Chart.register( @@ -67,4 +67,4 @@ const transparentGradientBar = (ctx, chartArea, hexColor, horizontal = false) => return gradient; }; -export { Chart, color, transparentGradientLine, transparentGradientBar }; +export { Chart, color, getRelativePosition, transparentGradientLine, transparentGradientBar }; diff --git a/src/charts/BarChart.vue b/src/charts/BarChart.vue index 4b90226..f9b2df4 100644 --- a/src/charts/BarChart.vue +++ b/src/charts/BarChart.vue @@ -4,16 +4,25 @@

{{ description }}

+
+ {{ t('stats.addressCopied') }} +