سؤال

why save chart functionality not working ? even in official example ?

http://examples.ext.net/Examples/Chart/Area/Basic/

it's code sample for javascript i use it was working for 6 months now it's redirect to

http://svg.sencha.io/ with a blank page

<script>
          var saveChart = function (btn) {
              Ext.MessageBox.confirm('Confirm Download', 'Would you like to download the chart as an image?', function (choice) {
                  if (choice == 'yes') {
                      btn.up('panel').down('chart').save({
                          type: 'image/png'
                      });
                  }
              });
          }
<script>
هل كانت مفيدة؟

المحلول

found another Option for exporting charts

i have used Export to server

http://examples.ext.net/Examples/Chart/Miscellaneous/Export_to_Server/

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top