Fixes code style
This commit is contained in:
parent
f45b4b763a
commit
de25eef2f6
|
@ -35,32 +35,31 @@ function CdfChartReact(props) {
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
try {
|
try {
|
||||||
new CdfChartD3()
|
new CdfChartD3()
|
||||||
.set('svgWidth', width)
|
.set('svgWidth', width)
|
||||||
.set('svgHeight', props.height)
|
.set('svgHeight', props.height)
|
||||||
.set('maxX', props.maxX)
|
.set('maxX', props.maxX)
|
||||||
.set('minX', props.minX)
|
.set('minX', props.minX)
|
||||||
.set('onHover', props.onHover)
|
.set('onHover', props.onHover)
|
||||||
.set('marginBottom',props.marginBottom || 15)
|
.set('marginBottom', props.marginBottom || 15)
|
||||||
.set('marginLeft', 30)
|
.set('marginLeft', 30)
|
||||||
.set('marginRight', 30)
|
.set('marginRight', 30)
|
||||||
.set('marginTop', 5)
|
.set('marginTop', 5)
|
||||||
.set('showDistributionLines', props.showDistributionLines)
|
.set('showDistributionLines', props.showDistributionLines)
|
||||||
.set('showDistributionYAxis', props.showDistributionYAxis)
|
.set('showDistributionYAxis', props.showDistributionYAxis)
|
||||||
.set('verticalLine', props.verticalLine || 110)
|
.set('verticalLine', props.verticalLine || 110)
|
||||||
.set('showVerticalLine', props.showVerticalLine)
|
.set('showVerticalLine', props.showVerticalLine)
|
||||||
.set('container', containerRef.current)
|
.set('container', containerRef.current)
|
||||||
.set('scale', scale)
|
.set('scale', scale)
|
||||||
.set('timeScale', props.timeScale)
|
.set('timeScale', props.timeScale)
|
||||||
.set('yMaxContinuousDomainFactor', props.yMaxContinuousDomainFactor || 1)
|
.set('yMaxContinuousDomainFactor', props.yMaxContinuousDomainFactor || 1)
|
||||||
.set('yMaxDiscreteDomainFactor', props.yMaxDiscreteDomainFactor || 1)
|
.set('yMaxDiscreteDomainFactor', props.yMaxDiscreteDomainFactor || 1)
|
||||||
.data({
|
.data({
|
||||||
continuous: props.continuous,
|
continuous: props.continuous,
|
||||||
discrete: props.discrete,
|
discrete: props.discrete,
|
||||||
})
|
})
|
||||||
.render();
|
.render();
|
||||||
}
|
} catch (e) {
|
||||||
catch(e) {
|
|
||||||
console.error("distPlotD3 Error: ", e)
|
console.error("distPlotD3 Error: ", e)
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue
Block a user