-
Notifications
You must be signed in to change notification settings - Fork 103
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(DonutChart): add option to mark chart segments as active #667
Conversation
Size Change: +1.45 kB (0%) Total Size: 156 kB
ℹ️ View Unchanged
|
@@ -143,6 +145,85 @@ const PieChart: FC<PieChartProps> = forwardRef((props: PieChartProps, ref: Ref<H | |||
[onDataPointClick] | |||
); | |||
|
|||
const renderActiveShape = useCallback( | |||
(props) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this code is copied from recharts, right? we have to add the corresponding license entry to the .reuse/dep5 file for this file
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
compare e.g with the web components project: https://github.com/SAP/ui5-webcomponents/blob/master/.reuse/dep5
|
||
const renderLabelLine = useCallback( | ||
(props) => { | ||
if (chartConfig.activeSegment === props.index) return null; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what about the previous check on measure.hideDataLabel
?
No description provided.