jQWidgets Forums

Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • in reply to: Chart Export to JPG Chart Export to JPG #71592

    andrecn13
    Participant

    Hi Peter,

    your example works fine. But if I add a range selector it won´t work. See this example:

    http://jsfiddle.net/andrecn13/6c1xgonn/

     categoryAxis: {
              dataField: 'Country',
              showGridLines: true,
              flip: false,
              rangeSelector: {
                  size: 100,
                  padding: { top: 0, bottom: 0 },
                  backgroundColor: 'white',
                  dataField: 'Country',
                  showGridLines: false
              }
          }
    in reply to: Chart Export to JPG Chart Export to JPG #71419

    andrecn13
    Participant

    Hi there,

    I tried to invoke a widget method to export the chart but return false on the browser console.

    
      $scope.export = function(){
        console.log($scope.chartConfig);
         $scope.chartConfig.jqxChart('saveAsJPEG', 'myChart.jpeg', 'http://www.jqwidgets.com/export_server/export.php');
      };

    I also tried to export a grid and works fine.

    $scope.download = function(){
         $scope.settings.jqxGrid('exportdata', 'xls', 'jqxGrid');
     };

    Can you show an example how to export the chart?

    Thanks!

Viewing 2 posts - 1 through 2 (of 2 total)