Highcharts Stock Demo

author(s): Torstein Hønsi

by navindian

HTML

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

<div class="info">Example of moving the input boxes away from the print and export buttons.</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>

CSS

.info {
    font: 0.7em sans-serif;
    padding: 0.5em;
    margin: 0.5em;
    background: #FCFFC5;
    border-radius: 0.5em;
    border: 1px solid gray;
}
.info:before {
    content: 'i';
    margin: 0.5em;
    font: 1.5em serif bold;
    font-style: italic;
    color: green;
}

JavaScript

$(function() {
    var chart = new Highcharts.StockChart({
        
        chart: {
            renderTo: 'container',

        },
        
        rangeSelector: {
            inputBoxStyle: {
                right: '80px'
            },
            selected: 1
        },
        
        series: [{
            name: 'USD to EUR',
            data: usdeur
        }]
    });
});