Skip to content

Commit

Permalink
fix: use better selector for pie element (#131)
Browse files Browse the repository at this point in the history
  • Loading branch information
ttdmayshark authored Feb 23, 2021
1 parent 9473749 commit 8ad6936
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/components/PieChart/components/ArcsLayer/ArcsLayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const ArcsLayer = ({ radius, innerRadius, dataWithArc, centerX, centerY }) => {
className={styles.slice}
d={currentArcGenerator(arcData)}
fill={d.color}
data-testid={`VDS-chart-slice-${d.color}`}
data-testid={`VDS-chart-slice-${d.label}`}
onClick={(event) => onItemClick(d.data, event)}
/>
);
Expand Down

0 comments on commit 8ad6936

Please sign in to comment.