Skip to content
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

Add custom node type typing and expose state modification functions for custom nodes in Sankey diagrams #2641

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

williamChen26
Copy link

This PR introduces two key enhancements to the Nivo Sankey component:

  1. Custom Node Type Typing: Added type definitions for custom node types, providing better type safety and developer experience when customizing nodes.

  2. State Exposure for Custom Nodes: Exposed useful state and state modification functions to custom nodes, allowing for more dynamic and interactive visualizations. This change enables developers to easily manipulate node states, such as highlighting or toggling, directly from custom node implementations.

These features aim to provide greater flexibility and control when working with Sankey diagrams in Nivo, improving the overall customization and interactivity of the visualizations.

Copy link

vercel bot commented Aug 25, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
nivo ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 2, 2024 6:18am

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant