Browse Source

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

Fixed incorrect display of negative values in the time series bar chart
pull/12494/head
Igor Kulikov 1 year ago
committed by GitHub
parent
commit
3822fd07fb
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 2
      ui-ngx/src/app/modules/home/components/widget/lib/chart/time-series-chart-bar.models.ts

2
ui-ngx/src/app/modules/home/components/widget/lib/chart/time-series-chart-bar.models.ts

@ -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];

Loading…
Cancel
Save