UI: Fixed incorrect display of negative values in the time series bar chart
This commit is contained in:
parent
691dc4bbd1
commit
e6a685e2f3
@ -109,7 +109,7 @@ export const renderTimeSeriesBar = (params: CustomSeriesRenderItemParams, api: C
|
|||||||
if (offset !== 0 && isNumeric(value)) {
|
if (offset !== 0 && isNumeric(value)) {
|
||||||
lowerLeft = api.coord([startTime, Number(value) >= 0 ? Number(value) + offset : offset]);
|
lowerLeft = api.coord([startTime, Number(value) >= 0 ? Number(value) + offset : offset]);
|
||||||
} else {
|
} else {
|
||||||
lowerLeft = api.coord([startTime, value]);
|
lowerLeft = api.coord([startTime, Number(value) >= 0 ? Number(value) : 0]);
|
||||||
}
|
}
|
||||||
const size = api.size([delta, value]);
|
const size = api.size([delta, value]);
|
||||||
const width = size[0];
|
const width = size[0];
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user