From e8fb9281b5c3e780a12f56b28bd49bbc26a231ff Mon Sep 17 00:00:00 2001 From: goodmice Date: Mon, 11 Jul 2022 12:49:18 +0500 Subject: [PATCH] =?UTF-8?q?=D0=A3=D0=BB=D1=83=D1=87=D1=88=D0=B5=D0=BD?= =?UTF-8?q?=D0=B0=20=D1=80=D0=B0=D0=B1=D0=BE=D1=82=D0=B0=20=D1=81=20=D1=82?= =?UTF-8?q?=D0=B8=D0=BF=D0=B0=D0=BC=D0=B8=20=D0=B2=20renderPoints?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/d3/renders/points.ts | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/components/d3/renders/points.ts b/src/components/d3/renders/points.ts index ecee991..68f09e8 100644 --- a/src/components/d3/renders/points.ts +++ b/src/components/d3/renders/points.ts @@ -50,7 +50,7 @@ export const renderPoint = >( currentPoints.enter().append(config.shape) const newPoints = getPointsRoot() - .selectAll(config.shape) + .selectAll(config.shape) .transition() .duration(chart.animDurationMs ?? 0) @@ -58,14 +58,14 @@ export const renderPoint = >( default: case 'circle': newPoints.attr('r', config.radius) - .attr('cx', (d: any) => xAxis(chart.x(d))) - .attr('cy', (d: any) => yAxis(chart.y(d))) + .attr('cx', (d) => xAxis(chart.x(d))) + .attr('cy', (d) => yAxis(chart.y(d))) break case 'line': - newPoints.attr('x1', (d: any) => xAxis(chart.x(d))) - .attr('x2', (d: any) => xAxis(chart.x(d))) - .attr('y1', (d: any) => yAxis(chart.y(d)) - config.radius) - .attr('y2', (d: any) => yAxis(chart.y(d)) + config.radius) + newPoints.attr('x1', (d) => xAxis(chart.x(d))) + .attr('x2', (d) => xAxis(chart.x(d))) + .attr('y1', (d) => yAxis(chart.y(d)) - config.radius) + .attr('y2', (d) => yAxis(chart.y(d)) + config.radius) break }