TimeSeries: clamp max bar width to 200px (#48021)

This commit is contained in:
Leon Sorokin 2022-04-21 00:05:57 -05:00 committed by GitHub
parent 8972418113
commit 5c3be630f2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -213,7 +213,7 @@ function mapDrawStyleToPathBuilder(
lineInterpolation?: LineInterpolation,
barAlignment = 0,
barWidthFactor = 0.6,
barMaxWidth = Infinity
barMaxWidth = 200
): Series.PathBuilder {
const pathBuilders = uPlot.paths;