Merge pull request #12485 from vvlladd28/bug/ts-bar-chart/negative-value

Fixed incorrect display of negative values in the time series bar chart
This commit is contained in:
Igor Kulikov 2025-01-20 19:36:39 +02:00 committed by GitHub
commit 3822fd07fb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -109,7 +109,7 @@ export const renderTimeSeriesBar = (params: CustomSeriesRenderItemParams, api: C
if (offset !== 0 && isNumeric(value)) {
lowerLeft = api.coord([startTime, Number(value) >= 0 ? Number(value) + offset : offset]);
} else {
lowerLeft = api.coord([startTime, value]);
lowerLeft = api.coord([startTime, Number(value) >= 0 ? Number(value) : 0]);
}
const size = api.size([delta, value]);
const width = size[0];