mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2025-01-10 15:14:09 +00:00
fix: remove rounding of axis limits (#3238)
This commit is contained in:
parent
d0288ea417
commit
14c7223dc4
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue