title: HighCharts : Multiple Charts resulting in multiple export button
body: <p>This is my first time using <strong>High Charts</strong> library, great stuff.</p>
  
  <p>Anyway, i am facing a strange problem that i don't understand the reason behind it or how to solve it.</p>
  
  <p>When i display one chart in my page everything is good as soon as i add more charts in the same page the added charts have two export buttons.
  <a href="https://i.stack.imgur.com/Ao1JO.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Ao1JO.png" alt="enter image description here"></a></p>
  
  <p>here is my JS code :</p>
  
  <pre><code>$(function() {
                  Highcharts.setOptions({
                      colors : [ '#e74c3c', '#66b354', '#DDDF00', '#24CBE5',
                              '#64E572', '#FF9655', '#FFF263', '#6AF9C4' ]
                  });
  
                  /* Pie Chart */
                  $('#pie-chart-1')
                          .highcharts(
                                  {
                                      chart : {
                                          plotBackgroundColor : null,
                                          plotBorderWidth : null,
                                          plotShadow : false
                                      },
                                      title : {
                                          text : '#{msg['DB_graph_title1']}'
                                      },
                                      tooltip : {
                                          pointFormat : '{series.name}: &lt;b&gt;{point.percentage:.1f}%&lt;/b&gt;'
                                      },
                                      plotOptions : {
                                          pie : {
                                              allowPointSelect : true,
                                              cursor : 'pointer',
                                              dataLabels : {
                                                  enabled : true,
                                                  color : '#000000',
                                                  connectorColor : '#000000',
                                                  format : '&lt;b&gt;{point.name}&lt;/b&gt;: {point.percentage:.1f} %'
                                              }
                                          }
                                      },                                      
                                      series : [ {
                                          type : 'pie',
                                          name : 'Etat',
                                          data : [
                                                  //'#{msg['DB_graph_ND']}'
                                                  [ '#{msg['DB_graph_ND']}',
                                                          #{homeSupBean.nonDemarre} ],
                                                  [ '#{msg['DB_graph_CL']}',
                                                          #{homeSupBean.complete} ],
                                                  [ '#{msg['DB_graph_EC']}',
                                                          #{homeSupBean.enCours} ], ]
                                      } ]
                                  });
              });
  
  
              $(function() {
                  Highcharts.setOptions({
                      colors : [ '#95ceff', '#66b354', '#DDDF00', '#24CBE5',
                              '#64E572', '#FF9655', '#FFF263', '#6AF9C4' ]
                  });
                  $('#container-1')
                          .highcharts(
                                  {
                                      chart : {
                                          type : 'column'
                                      },                                      
                                      title : {
                                          text : '#{msg['DB_graph_title2']}'
                                      },
                                      subtitle : {
                                          text : ''
                                      },
                                      xAxis : {
                                          type : 'category',
                                          labels : {
                                              rotation : -45,
                                              style : {
                                                  fontSize : '13px',
                                                  fontFamily : 'Verdana, sans-serif'
                                              }
                                          }
                                      },
                                      yAxis : {
                                          min : 0,
                                          title : {
                                              text : '#{msg['DB_graph_lib']} (%)'
                                          }
                                      },
                                      legend : {
                                          enabled : false
                                      },
  
                                      tooltip : {
                                          pointFormat : '#{msg['DB_graph_lib']} : &lt;b&gt;{point.y:.1f} %&lt;/b&gt;'
  
                                      },                                      
                                      series : [ {
                                          name : '#{msg['DB_graph_lib']}',
                                          data : [
                                                  &lt;ui:repeat value="#{homeSupBean.profils}" var="prfl"&gt;[
                                                          '#{prfl.profileName}',
                                                          #{homeSupBean.profilProg[prfl.id.toString()]}],
                                                  &lt;/ui:repeat&gt; ],
                                          dataLabels : {
                                              enabled : true,
                                              rotation : -90,
                                              color : '#FFFFFF',
                                              align : 'right',
                                              format : '{point.y:.1f}', // one decimal
                                              y : 10, // 10 pixels down from the top
                                              style : {
                                                  fontSize : '15px',
                                                  fontFamily : 'Verdana, sans-serif'
                                              }
                                          }
                                      } ]
                                  });
              });
              $(function() {
                  try {
                      Highcharts.setOptions({
                          colors : [ '#95ceff', '#66b354', '#DDDF00',
                                  '#24CBE5', '#64E572', '#FF9655', '#FFF263',
                                  '#6AF9C4' ]
                      });
                      $('#container-2')
                              .highcharts(
                                      {
                                          chart : {
                                              type : 'column'
                                          },
                                          title : {
                                              text : '#{msg['DB_graph_title3']}'
                                          },
                                          subtitle : {
                                              text : ''
                                          },
                                          xAxis : {
                                              type : 'category',
                                              labels : {
                                                  rotation : -45,
                                                  style : {
                                                      fontSize : '13px',
                                                      fontFamily : 'Verdana, sans-serif'
                                                  }
                                              }
                                          },
                                          yAxis : {
                                              min : 0,
                                              title : {
                                                  text : '#{msg['DB_graph_lib']} (%)'
                                              }
                                          },
                                          legend : {
                                              enabled : false
                                          },
                                          tooltip : {
                                              pointFormat : '#{msg['DB_graph_lib']} : &lt;b&gt;{point.y:.1f} %&lt;/b&gt;'
                                          },
                                          series : [ {
                                              name : '#{msg['DB_graph_lib']}',
                                              data : [
                                                      &lt;ui:repeat value="#{homeSupBean.campagnes}" var="camp"&gt;[
                                                              '#{camp.name}',
                                                              #{homeSupBean.campagneProg[camp.id.toString()]}],
                                                      &lt;/ui:repeat&gt; ],
                                              dataLabels : {
                                                  enabled : true,
                                                  rotation : -90,
                                                  color : '#FFFFFF',
                                                  align : 'right',
                                                  format : '{point.y:.1f}', // one decimal
                                                  y : 10, // 10 pixels down from the top
                                                  style : {
                                                      fontSize : '15px',
                                                      fontFamily : 'Verdana, sans-serif'
                                                  }
                                              }
                                          } ]
                                      });
  
                  } catch (e) {
                      alert(e.message);
                  }
  
              });
              $(function() {
                  try {
                      Highcharts.setOptions({
                          colors : [ '#95ceff', '#66b354', '#DDDF00',
                                  '#24CBE5', '#64E572', '#FF9655', '#FFF263',
                                  '#6AF9C4' ]
                      });
                      $('#container-3')
                              .highcharts(
                                      {
                                          chart : {
                                              type : 'column'
                                          },
                                          title : {
                                              text : '#{msg['DB_graph_title4']}'
                                          },
                                          subtitle : {
                                              text : ''
                                          },
                                          xAxis : {
                                              type : 'category',
                                              labels : {
                                                  rotation : -45,
                                                  style : {
                                                      fontSize : '13px',
                                                      fontFamily : 'Verdana, sans-serif'
                                                  }
                                              }
                                          },
                                          yAxis : {
                                              min : 0,
                                              title : {
                                                  text : '#{msg['DB_graph_lib']} (%)'
                                              }
                                          },
                                          legend : {
                                              enabled : false
                                          },
                                          tooltip : {
                                              pointFormat : '#{msg['DB_graph_lib']} : &lt;b&gt;{point.y:.1f} %&lt;/b&gt;'
                                          },
                                          series : [ {
                                              name : '#{msg['DB_graph_lib']}',
                                              data : [
                                                      &lt;ui:repeat value="#{homeSupBean.sectionsHC}" var="sect"&gt;[
                                                              '#{sect.name}',
                                                              #{homeSupBean.sectionProg[sect.id.toString()]}],
                                                      &lt;/ui:repeat&gt; ],
                                              dataLabels : {
                                                  enabled : true,
                                                  rotation : -90,
                                                  color : '#FFFFFF',
                                                  align : 'right',
                                                  format : '{point.y:.1f}', // one decimal
                                                  y : 10, // 10 pixels down from the top
                                                  style : {
                                                      fontSize : '15px',
                                                      fontFamily : 'Verdana, sans-serif'
                                                  }
                                              }
                                          } ]
                                      });
                  } catch (e) {
                      alert(e.message);
                  }
              });
  </code></pre>
  
  <p>I tried this : </p>
  
  <pre><code>exporting : {
              buttons : {
                 contextButtons : {
                          enabled : false,
                          menuItems : null
                          }
                  },
                  enabled : true
              },
  </code></pre>
  
  <p>but without success :(, if anybody can help please don't hesitate, thanks.</p>