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:
parent
1c515496a9
commit
1eaec10ea9
@ -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,
|
||||
|
@ -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 }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user