mirror of
https://github.com/zoriya/flood.git
synced 2026-06-01 18:47:44 +00:00
Remove unused method
This commit is contained in:
@@ -158,27 +158,6 @@ export default class LineChart extends React.Component {
|
||||
this.graphRefs.rateLine.attr('d', transferDataLinePoints);
|
||||
}
|
||||
|
||||
// renderPointInspector() {
|
||||
// const {
|
||||
// graphRefs: {inspectPoint},
|
||||
// props: {data, onGraphHover},
|
||||
// xScale,
|
||||
// yScale,
|
||||
// } = this;
|
||||
|
||||
// const interval = Math.round(xScale.invert(this.lastMouseX));
|
||||
// const pointValue = data[interval].speed;
|
||||
// const coordinates = {x: xScale(interval), y: yScale(pointValue)};
|
||||
|
||||
// inspectPoint.attr(
|
||||
// 'transform', 'translate(' + coordinates.x + ',' + coordinates.y + ')'
|
||||
// );
|
||||
|
||||
// if (onGraphHover) {
|
||||
// onGraphHover(pointValue);
|
||||
// }
|
||||
// }
|
||||
|
||||
renderPrecisePointInspector() {
|
||||
const {
|
||||
graphRefs: {inspectPoint},
|
||||
|
||||
Reference in New Issue
Block a user