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

Extending charts? #1063

Closed
illume opened this issue Jun 8, 2015 · 3 comments
Closed

Extending charts? #1063

illume opened this issue Jun 8, 2015 · 3 comments

Comments

@illume
Copy link

illume commented Jun 8, 2015

Hello,

is there a recommend way to extend the charts?

There's a few things I do with d3 at the moment, just drawing on the charts. Drawing lines on some bar charts at certain levels, having some text show pointing at some things, and such.

The problem with this approach is that things don't resize, and it feels a bit hacky.

How should I extend charts?

@liquidpele
Copy link
Contributor

Hmm... well we do use d3 signals in several cases, iirc there is a "finished rendering" one, so you could hook onto that to then do/redo your custom drawing stuff on the svg.

@robinfhu
Copy link
Contributor

robinfhu commented Jun 9, 2015

Extending basically involves forking the NVD3 repo and just adding the functionality you need into the code directly. We don't have that many 'hooks' into the rendering logic unfortunately. It's a good chance to learn how NVD3 works too!

@illume
Copy link
Author

illume commented Jun 16, 2015

Thanks for the tips :)

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

No branches or pull requests

3 participants