Skip to content

Commit

Permalink
Fix bug in histogram renderer
Browse files Browse the repository at this point in the history
  • Loading branch information
dominikriemer committed Feb 6, 2024
1 parent 81f7f10 commit 279cf0e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions ui/src/app/core-ui/echarts-transform/histogram.transform.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,10 @@ export const HistogramTransform: ExternalDataTransform<HistogramConfig> = {
values.shift();

let bins = bin();
if (!autoBin && numberOfBins) {
if (!autoBin && numberOfBins !== undefined) {
bins = bins.thresholds(numberOfBins);
}
if (!autoDomain && domainMin && domainMax) {
if (!autoDomain && domainMin !== undefined && domainMax !== undefined) {
bins = bins.domain([domainMin, domainMax]);
}
const d3h = bins(values);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
[(ngModel)]="
currentlyConfiguredWidget.visualizationConfig.autoBin
"
(change)="triggerDataRefresh()"
(change)="triggerViewRefresh()"
>
Auto-compute number of bins
</mat-checkbox>
Expand Down

0 comments on commit 279cf0e

Please sign in to comment.