GraphNG: uPlot 1.6.13 (#35844) (#35902)

(cherry picked from commit 9eac9aefde)

Co-authored-by: Leon Sorokin <leeoniya@gmail.com>
This commit is contained in:
Grot (@grafanabot)
2021-06-17 20:46:18 +02:00
committed by GitHub
co-authored by Leon Sorokin
parent 2b0291f997
commit 2745265f99
4 changed files with 21 additions and 6 deletions
+1 -1
View File
@@ -72,7 +72,7 @@
"react-transition-group": "4.4.1",
"slate": "0.47.8",
"tinycolor2": "1.4.1",
"uplot": "1.6.12"
"uplot": "1.6.13"
},
"devDependencies": {
"@rollup/plugin-commonjs": "16.0.0",
@@ -64,7 +64,7 @@ export class UPlotScaleBuilder extends PlotConfigBuilder<ScaleProps, Scale> {
const rangeFn = (u: uPlot, dataMin: number, dataMax: number, scaleKey: string) => {
const scale = u.scales[scaleKey];
let minMax = [dataMin, dataMax];
let minMax: uPlot.Range.MinMax = [dataMin, dataMax];
if (scale.distr === 1 || scale.distr === 2) {
// @ts-ignore here we may use hardMin / hardMax to make sure any extra padding is computed from a more accurate delta