27 Jan 2013 5:27 PM #1
Integrating d3js components inside extjs4 viewport
Has anyone out there took d3js components and rendered them to ExtJS4 -- such as within a viewport? Is such thing possible?
29 Jan 2013 7:16 AM #2
- Join Date
- Mar 2007
- Gainesville, FL
- Vote Rating
Sure it's possible. First you need to see if Ext JS can do what you need it to do so you aren't loading d3js if you don't need to (it will save performance if you don't). If you still need to (Ext JS for some reason cannot or just laziness) then you can render the d3js component after the Ext JS component has rendered.
Sencha Inc, Senior Software Engineer
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services firstname.lastname@example.org
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!
When posting code, please use BBCode's CODE tags.
21 May 2013 2:39 AM #3
Any gotchas that we need to look out for while integrating D3? Scrolling, alignment, etc would all work fine? Based on whatever I know of D3 .... it works purely on SVG canvas. That can easily be embedded within say the ExtJS Panel?