diff --git a/src/components/charts/DistributionPlot/distPlotD3.js b/src/components/charts/DistributionPlot/distPlotD3.js index 81ccc545..eddd0748 100644 --- a/src/components/charts/DistributionPlot/distPlotD3.js +++ b/src/components/charts/DistributionPlot/distPlotD3.js @@ -11,10 +11,7 @@ function exists(arr) { return arr.find(num => _.isFinite(num)); } -/** - * @todo: To rename as "DistPlotD3". - */ -export class CdfChartD3 { +export class DistPlotD3 { constructor() { this.attrs = { diff --git a/src/components/charts/DistributionPlot/distPlotReact.js b/src/components/charts/DistributionPlot/distPlotReact.js index 5385adcd..7cf0e34b 100644 --- a/src/components/charts/DistributionPlot/distPlotReact.js +++ b/src/components/charts/DistributionPlot/distPlotReact.js @@ -1,6 +1,6 @@ import React, { useEffect } from 'react'; import { useSize } from 'react-use'; -import { CdfChartD3 } from './distPlotD3'; +import { DistPlotD3 } from './distPlotD3'; /** * @param min @@ -14,12 +14,11 @@ function getRandomInt(min, max) { } /** - * @todo: To rename as "DistPlotReact". * @param props * @returns {*} * @constructor */ -function CdfChartReact(props) { +function DistPlotReact(props) { const containerRef = React.createRef(); const key = "cdf-chart-react-" + getRandomInt(0, 1000); const scale = props.scale || 'linear'; @@ -35,7 +34,7 @@ function CdfChartReact(props) { useEffect(() => { try { - new CdfChartD3() + new DistPlotD3() .set('svgWidth', width) .set('svgHeight', props.height) .set('maxX', props.maxX) @@ -79,4 +78,4 @@ function CdfChartReact(props) { ]); } -export default CdfChartReact; +export default DistPlotReact;