[CLOSED] download a chart in jpg format

  1. #1

    [CLOSED] download a chart in jpg format

    I can not download a chart in jpg format, i try this but did not work, help me please
    thanks

     function saveChart(btn) {
                Ext.MessageBox.confirm('Confirmar Descarga', 'Desea descargar la grafica?', function (choice) {
                    if (choice == 'yes') {
                        btn.up('panel').down('chart').save({
                            type: 'image/jpg'
                        });
                    }
                });
            }
    Last edited by Baidaly; Apr 17, 2013 at 10:55 PM. Reason: [CLOSED]
  2. #2
    Here is the note from 'save' method documentation

    Important: By default, chart data is sent to a server operated by Sencha to do data processing. You may change this default by setting the defaultUrl of theExt.draw.engine.ImageExporter class. In addition, please note that this service only creates PNG images.
    So, Sencha server (default server) supports PNG only
  3. #3
    Quote Originally Posted by Vladimir View Post
    Here is the note from 'save' method documentation



    So, Sencha server (default server) supports PNG only


    ok, thanks!

Similar Threads

  1. [CLOSED] String.format vs. Ext.util.Format.format
    By bayoglu in forum 2.x Legacy Premium Help
    Replies: 4
    Last Post: Mar 15, 2013, 5:26 PM
  2. Replies: 4
    Last Post: Nov 27, 2012, 1:17 PM
  3. Replies: 1
    Last Post: Oct 02, 2012, 8:57 AM
  4. Replies: 2
    Last Post: Aug 13, 2012, 2:12 PM
  5. Replies: 1
    Last Post: Jun 02, 2012, 7:12 AM

Posting Permissions