Skip to content

Commit 9ff1d0f

Browse files
author
Lijun Zhang
committed
DM-9342:
Fixed clear/reset issue
1 parent 13fa15d commit 9ff1d0f

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/firefly/js/charts/ui/HistogramOptions.jsx

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,18 @@ export function resultsFail() {
3737
// TODO: do I need to do anything here?
3838
}
3939

40-
export function setOptions(groupKey, histogramParams, key=null) {
40+
export function setOptions(groupKey, histogramParams) {
4141
const flds = [
4242
{fieldKey: 'columnOrExpr', value: get(histogramParams, 'columnOrExpr')},
4343
{fieldKey: 'x', value: get(histogramParams, 'x', '_none_')},
4444
{fieldKey: 'y', value: get(histogramParams, 'y', '_none_')},
4545
{fieldKey: 'algorithm', value: get(histogramParams, 'algorithm', 'fixedSizeBins')},
4646
{fieldKey: 'falsePositiveRate', value: get(histogramParams, 'falsePositiveRate','0.05')},
47-
{fieldKey: 'fixedBinSizeSelection', value: get(histogramParams, 'fixedBinSizeSelection','numBins')},
48-
{fieldKey: 'numBins', value: get(histogramParams, 'numBins','50')}
47+
{fieldKey: 'fixedBinSizeSelection', value:'numBins'},
48+
{fieldKey: 'numBins', value: get(histogramParams, 'numBins','50')},
49+
{fieldKey: 'binWidth', value: get(histogramParams, 'binWidth','')},
50+
{fieldKey: 'minCutoff', value: get(histogramParams, 'minCutoff','')},
51+
{fieldKey: 'maxCutoff', value: get(histogramParams, 'maxCutoff','')}
4952

5053

5154
];

0 commit comments

Comments
 (0)