title: How to access function of buit-in button in highcharts using asp.net
body: <p>I want to create a custom button on the html page like one on the highcharts. But I do have a table also on my page. Now I want that button to export highchart + table to a pdf file. My code includes:</p>
  
  <pre><code> function DrawPieChart(series)
          {
  
              $('#container').highcharts({
                  chart: {
                      plotBackgroundColor: null,
                      plotBorderWidth: 1, //null,
                      plotShadow: false,
                      backgroundColor: {
                          linearGradient: [50, 0, 100, 500],
                          stops: [
                      [0, 'rgb(255, 255, 255)'],
                      [1, 'rgb(0, 00, 0)']
                          ]
                      }
                  },
  
                  title: {
                      text: 'Matched and Unmatched Regions',
  
                  },
                  tooltip: {
                      pointFormat: '{series.name}: &lt;b&gt;{point.percentage:.1f}%&lt;/b&gt;'
                  },
                  exportButton: {
                      enabled: true
                  },
                  plotOptions: {
                      pie: {
                          allowPointSelect: true,
                          cursor: 'pointer',
                          dataLabels: {
                              enabled: true,
                              format: '&lt;b&gt;{point.name}&lt;/b&gt;: {point.percentage:.1f} %',
                              style: {
                                  color: (Highcharts.theme &amp;&amp; Highcharts.theme.contrastTextColor) || 'black'
                              }
                          }
                      }
                  },
  
                  series: [{
                      type: 'pie',
                      name: 'Percentage',
                      data: series
                  }]
              });
  </code></pre>
  
  <p>The built-in button on the chart export the pie-chart only , I need to get all my data exported to the pdf . Thats why Im thinking to get things done in this way.Any suugesstions or guidance on this plz?</p>