From 1eaec10ea9a546082a90b642f03999f9db9b07f2 Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Fri, 28 Jan 2022 13:42:46 +0000 Subject: [PATCH] center single data point --- src/components/Asset/AssetActions/Pool/Graph/_constants.ts | 4 ++-- src/components/Asset/AssetActions/Pool/Graph/_utils.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/Asset/AssetActions/Pool/Graph/_constants.ts b/src/components/Asset/AssetActions/Pool/Graph/_constants.ts index 6fe4ac566..38e88fd3e 100644 --- a/src/components/Asset/AssetActions/Pool/Graph/_constants.ts +++ b/src/components/Asset/AssetActions/Pool/Graph/_constants.ts @@ -35,8 +35,8 @@ defaults.animation = { easing: 'easeInOutQuart', duration: 1000 } export const lineStyle: Partial = { fill: false, borderWidth: 2, - pointBorderWidth: 0, - pointRadius: 0, + pointBorderWidth: 1, + pointRadius: 2, pointHoverRadius: 4, pointHoverBorderWidth: 0, pointHitRadius: 2, diff --git a/src/components/Asset/AssetActions/Pool/Graph/_utils.ts b/src/components/Asset/AssetActions/Pool/Graph/_utils.ts index 1396ba033..31bdb9339 100644 --- a/src/components/Asset/AssetActions/Pool/Graph/_utils.ts +++ b/src/components/Asset/AssetActions/Pool/Graph/_utils.ts @@ -28,7 +28,7 @@ export function getOptions(locale: string, isDarkMode: boolean): ChartOptions { hover: { intersect: false }, scales: { y: { display: false, beginAtZero: true }, - x: { display: false } + x: { display: false, offset: true } } } }