mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-08-13 01:19:02 +08:00
feat: increase chart point visibility (#2185)
This commit is contained in:
parent
8a5b26cefe
commit
de370d7f0c
@ -240,6 +240,16 @@ function Graph({
|
|||||||
tension: 0,
|
tension: 0,
|
||||||
cubicInterpolationMode: 'monotone',
|
cubicInterpolationMode: 'monotone',
|
||||||
},
|
},
|
||||||
|
point: {
|
||||||
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||||
|
hoverBackgroundColor: (ctx: any) => {
|
||||||
|
if (ctx?.element?.options?.borderColor) {
|
||||||
|
return ctx.element.options.borderColor;
|
||||||
|
}
|
||||||
|
return 'rgba(0,0,0,0.1)';
|
||||||
|
},
|
||||||
|
hoverRadius: 5,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
onClick: (event, element, chart) => {
|
onClick: (event, element, chart) => {
|
||||||
if (onClickHandler) {
|
if (onClickHandler) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user