mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-11-27 02:46:47 +01:00
fix: remove rounding of axis limits (#3238)
This commit is contained in:
parent
069401a304
commit
080562030d
@ -48,7 +48,7 @@ export const getMinMaxBuffer = (min: number | null, max: number | null): [number
|
||||
}
|
||||
const valueRange = Math.abs(max - min) || Math.abs(min) || 1;
|
||||
const padding = 0.02*valueRange;
|
||||
return [Math.floor(min - padding), Math.ceil(max + padding)];
|
||||
return [min - padding, max + padding];
|
||||
};
|
||||
|
||||
export const getLimitsYAxis = (values: { [key: string]: number[] }): AxisRange => {
|
||||
|
Loading…
Reference in New Issue
Block a user