TimeSeries: guard against pointSize being set < lineWidth (#41577)

This commit is contained in:
Leon Sorokin 2021-11-11 23:47:28 -06:00 committed by GitHub
parent 4281c5afc1
commit 7a92faf398
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -109,7 +109,7 @@ export class UPlotSeriesBuilder extends PlotConfigBuilder<SeriesProps, Series> {
points: {
stroke: useColor,
fill: useColor,
size: pointSize,
size: !pointSize || pointSize < lineWidth! ? undefined : pointSize,
filter: pointsFilter,
},
};