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

feat(arcs): introduce @nivo/arcs package #1331

Merged
merged 39 commits into from
Dec 18, 2020
Merged

feat(arcs): introduce @nivo/arcs package #1331

merged 39 commits into from
Dec 18, 2020

Conversation

plouc
Copy link
Owner

@plouc plouc commented Dec 5, 2020

The purpose of this PR was initially to add transitions to @nivo/pie, but when starting to implement it, I realized that this should also be useful for a few existing packages: @nivo/pie, @nivo/chord and @nivo/sunburst, which led me to think of introducing a @nivo/arc package.

This also allows us to move some logic specific to arcs in this new package like cursor detection for canvas charts, hooks for configuring and memoizing a d3 arc generator... while making the core package a bit lighter.

I haven't integrated it yet in the sunburst package as it might require a bit of work, and just replaced the cursor detection in the chord package, but ultimately, we should use more from this new package.

It could also help building new chart types such as a Rose chart.

@plouc plouc self-assigned this Dec 5, 2020
@codesandbox-ci
Copy link

codesandbox-ci bot commented Dec 5, 2020

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 03f8702:

Sandbox Source
nivo Configuration
nivo-website Configuration

@plouc plouc added the 🍰 pie @nivo/pie package label Dec 6, 2020
@ollwenjones
Copy link
Contributor

sounds really cool 👍

@plouc plouc marked this pull request as ready for review December 15, 2020 23:47
@plouc plouc requested a review from wyze December 15, 2020 23:47
@plouc
Copy link
Owner Author

plouc commented Dec 15, 2020

@wyze if you could have a look at this PR, that would be great, I'm sorry, it's huge 🙇🏻

@wyze
Copy link
Contributor

wyze commented Dec 15, 2020

Of course @plouc, but only if you look at my axes PR next. :)

@plouc
Copy link
Owner Author

plouc commented Dec 15, 2020

Right, sorry also for that, in fact I already started, I'm gonna try to finish reviewing it in the next upcoming days.

Copy link
Contributor

@wyze wyze left a comment

Choose a reason for hiding this comment

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

Looks great! Just minor grammar changes and question about directory names.

@plouc
Copy link
Owner Author

plouc commented Dec 17, 2020

Looks great! Just minor grammar changes and question about directory names.

@wyze, thank you for the review, and the fixes! regarding directory name, I tend to use underscores in most of my projects, so I would prefer to use them.

@plouc plouc requested a review from wyze December 17, 2020 23:20
Copy link
Contributor

@wyze wyze left a comment

Choose a reason for hiding this comment

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

Works for me then. Good to go!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🍰 pie @nivo/pie package
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants