Skip to content

Commit

Permalink
Revert scatter shapes logic part (#370)
Browse files Browse the repository at this point in the history
  • Loading branch information
artemipanchuk authored Dec 27, 2023
1 parent a3b952b commit 6f84d02
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions src/plugins/d3/renderer/hooks/useShapes/scatter/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,19 +48,17 @@ export function ScatterSeriesShape(props: ScatterSeriesShapeProps) {
const inactiveOptions = get(seriesOptions, 'scatter.states.inactive');

const selection = svgElement
.selectAll('point')
.selectAll('circle')
.data(preparedData, shapeKey)
.join(
(enter) => enter.append('rect').attr('class', b('point')),
(enter) => enter.append('circle').attr('class', b('point')),
(update) => update,
(exit) => exit.remove(),
)
.attr('fill', (d) => d.data.color || d.series.color || '')
// .attr('r', (d) => d.data.radius || DEFAULT_SCATTER_POINT_RADIUS)
.attr('x', (d) => d.cx)
.attr('y', (d) => d.cy)
.attr('width', () => DEFAULT_SCATTER_POINT_RADIUS)
.attr('height', () => DEFAULT_SCATTER_POINT_RADIUS);
.attr('r', (d) => d.data.radius || DEFAULT_SCATTER_POINT_RADIUS)
.attr('cx', (d) => d.cx)
.attr('cy', (d) => d.cy);

svgElement
.on('mousemove', (e) => {
Expand Down

0 comments on commit 6f84d02

Please sign in to comment.