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

own node css classname #7

Merged
merged 2 commits into from
May 5, 2021
Merged

own node css classname #7

merged 2 commits into from
May 5, 2021

Conversation

Cantasura
Copy link
Contributor

Hi there,
I wanted to adept the nodeClassName functionality of your sunburst chart.
best wishes.

@vasturiano
Copy link
Owner

Thanks for creating this PR @Cantasura.

It's missing the declaration of nodeClassName as a component prop.
You can use this commit as reference: vasturiano/sunburst-chart@f8e27bf

And, would you mind adding to the docs too?

src/icicle.js Outdated
@@ -191,7 +192,10 @@ export default Kapsule({

// Entering
const newCell = cell.enter().append('g')
.attr('class', 'node')
.attr('class', d => [
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be added to the allCells section below instead. So it reacts to changes in case the nodeClassName changes after a cell is created.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated

@vasturiano vasturiano merged commit 8ec2550 into vasturiano:master May 5, 2021
@vasturiano
Copy link
Owner

Thanks again for the PR @Cantasura. I've done some small fixes and merged. It's now published in 1.4.0. 👍

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.

2 participants