1. #1
    Ext User
    Join Date
    Aug 2008
    Posts
    28
    Vote Rating
    0
    patrosmania is on a distinguished road

      0  

    Default export graphic to image

    export graphic to image


    Hi everyone.

    Is there any way to export an Extjs generated graphic to an image (jpeg or png)?

    Thanks in advance.

  2. #2
    Sencha - Ext JS Dev Team Animal's Avatar
    Join Date
    Mar 2007
    Location
    Notts/Redwood City
    Posts
    30,508
    Vote Rating
    56
    Animal has a spectacular aura about Animal has a spectacular aura about Animal has a spectacular aura about

      0  

    Default


    "graphic" You mean like a chart?

    You can do screen captures on most OSs now. Windows can, I don't know what you have.

  3. #3
    Ext User
    Join Date
    Aug 2008
    Posts
    28
    Vote Rating
    0
    patrosmania is on a distinguished road

      0  

    Default


    yes sure!, I did the explicit translation from spanish to english, sorry.

    I was hoping I could save it as an image but from the javascript code, not from the OS native function. Is there some way to achieve that?

  4. #4
    Sencha - Community Support Team Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,246
    Vote Rating
    95
    Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of

      0  

    Default


    No, javascript doesn't support that.

  5. #5
    Touch Premium Member
    Join Date
    Feb 2008
    Posts
    206
    Vote Rating
    0
    BlueCamel is on a distinguished road

      0  

    Default


    Version 2.8.0 of YUI Charts (which is what ExtJS uses) supports exporting the chart as a jpg or png when using flash 10 or later.

    EDIT: To be clear, extjs uses an older version of YUI charts than 2.8.0. It's not clear when ExtJS plans to include the latest release.

  6. #6
    Ext User jjulian's Avatar
    Join Date
    Jul 2009
    Posts
    36
    Vote Rating
    0
    jjulian is on a distinguished road

      0  

    Default


    I've heard this request a few times...the app needs to allow "export" of a section of the page to pdf or png. The requirement can be danced around with the "screenshot" argument, or setting up the server to allow csv download for grid data, or using the new flot export to png functionality, etc. But has anyone done a real WYSIWYG export?

    I imagine it could be done by sending the chunk of html down to the server via ajax, then running HTMLDOC to create a pdf. I've never attempted this solution, though.

    Does anyone have a good solution?

  7. #7
    Ext User edgars.sults's Avatar
    Join Date
    Feb 2010
    Posts
    3
    Vote Rating
    0
    edgars.sults is on a distinguished road

      0  

    Default


    Has there been any progress with this? Is it now possible to save an Ext chart as an image?

    I haven't found any documentation or mention about this. And the demos don't have this feature.

    I can't even find YUI charts documentation about this.

    I've been using FusionCharts, which have this feature, and it must be enabled by adding some attributes to the Flash object, but I'd like to move to Ext charts. But the key functionality that seems to be missing is the ability to export the chart to an image.

  8. #8
    Ext User
    Join Date
    Aug 2008
    Posts
    28
    Vote Rating
    0
    patrosmania is on a distinguished road

      0  

    Default


    Thanks for your reply. We're hoping that feature comes right around the corner soon too.

  9. #9
    Ext User
    Join Date
    Apr 2010
    Posts
    2
    Vote Rating
    0
    borbpet is on a distinguished road

      0  

    Default


    So I can export chart to PNG with IE but Firefow doesn't show export option in popup menu. Any idea?