1. #1
    Sencha User
    Join Date
    Apr 2010
    Posts
    48
    Vote Rating
    0
    whippersnapper is on a distinguished road

      0  

    Default Integrating d3js components inside extjs4 viewport

    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?

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    36,522
    Vote Rating
    814
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      -1  

    Default


    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.
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    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 services@sencha.com

    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.

  3. #3
    Sencha Premium Member
    Join Date
    Oct 2012
    Posts
    1
    Vote Rating
    0
    arcamax is on a distinguished road

      0  

    Default


    Quote Originally Posted by mitchellsimoens View Post
    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.
    @mitchell I would be real nice if you could help point us to some documentation, example codebase that shows D3 integrated with ExtJS. It would help give a good jump start to our team here. I tried searching for it but in vain.

    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?

Thread Participants: 2