1
0
mirror of https://github.com/oceanprotocol/market.git synced 2024-12-02 05:57:29 +01:00

center single data point

This commit is contained in:
Matthias Kretschmann 2022-01-28 13:42:46 +00:00
parent 1c515496a9
commit 1eaec10ea9
Signed by: m
GPG Key ID: 606EEEF3C479A91F
2 changed files with 3 additions and 3 deletions

View File

@ -35,8 +35,8 @@ defaults.animation = { easing: 'easeInOutQuart', duration: 1000 }
export const lineStyle: Partial<ChartDataset> = {
fill: false,
borderWidth: 2,
pointBorderWidth: 0,
pointRadius: 0,
pointBorderWidth: 1,
pointRadius: 2,
pointHoverRadius: 4,
pointHoverBorderWidth: 0,
pointHitRadius: 2,

View File

@ -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 }
}
}
}