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

Update NVD3 support #708

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

Update NVD3 support #708

wants to merge 12 commits into from

Conversation

clecocel
Copy link

This updates the NVD3 JS library, and allows to modify the chart.pie via the $pie function in nvd3 class. This allows to create a half-donut as demonstrated here: https://github.com/nvd3-community/nvd3/blob/gh-pages/examples/pieChart.html

a minimum working example demonstrating value is:

p5 <- nPlot(~ cyl, data = mtcars, type = 'pieChart')
p5
p5$pie(startAngle="#! function(d){return d.startAngle/2-Math.PI/2;} !#",
       endAngle="#! function(d){return d.endAngle/2-Math.PI/2;} !#")

@clecocel
Copy link
Author

By the way, thank you very much for all the work you put into this, I just discovered the library, so I have been fiddling around with it, but it seems super powerful!

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