Highcharts Stock Demo

author(s): Torstein Hønsi

HTML

<div id="container" style="height: 400px; min-width: 600px"></div>

<script src="http://code.highcharts.com/stock/highstock.js"></script>
<script src="http://code.highcharts.com/stock/modules/exporting.js"></script>
<script type="text/javascript" src="http://www.highcharts.com/samples/data/usdeur.js"></script>

JavaScript

$(function() {
    var chart = new Highcharts.StockChart({
        
        chart: {
            renderTo: 'container',
            zoomType: 'xy'
        },
        
 
        xAxis: {
            events: {
                afterSetExtremes: function() {
                    chart.resetZoomButton.destroy();    
                }
            }
        },
        exporting : {
        buttons : {
          exportButton : {
            symbolFill : '#55BE3B',
            enabled : false
          },
          printButton : {
            symbolFill : '#7797BE',
            enabled : true
          }
        }
      },
        series: [{
            name: 'USD to EUR',
            data: usdeur
        }]
    },function(chart){

console.log(chart);
        /*if()
        {
        chart.resetZoomButton.destroy()    
            }  */          
    
    });
});