$(document).ready(function () { chart = new Highcharts.StockChart({ chart: { renderTo: 'chart', type: 'line', animation: false, showAxes: true, height: 500 }, xAxis: { ordinal: false, type: 'datetime', showEmpty: true, gridLineWidth: 1, gridLineDashStyle: 'dot', ordinal: false }, yAxis: { title: {text: 'Курс USD, грн'}, lineWidth: 3, gridLineWidth: 1, gridLineDashStyle: 'dash', ordinal: false }, plotOptions: { series: {connectNulls: true, shadow: false}, spline: {marker: {enabled: true}} }, tooltip: {valueDecimals: 8, xDateFormat: '%d %b %Y', shared: true}, series: [ { name: 'Курс USD', data: [[1472688000000,26.0813],[1472774400000,26.6159],[1472860800000,26.633],[1472947200000,26.633],[1473033600000,26.633],[1473120000000,26.7871],[1473206400000,26.8485],[1473292800000,26.7243],[1473379200000,26.6378],[1473465600000,26.6749],[1473552000000,26.6749],[1473638400000,26.6749],[1473724800000,26.6307],[1473811200000,26.426],[1473897600000,26.33],[1473984000000,26.2067],[1474070400000,25.9011],[1474156800000,25.9011],[1474243200000,25.9011],[1474329600000,25.767],[1474416000000,25.8055],[1474502400000,25.9746],[1474588800000,25.9228],[1474675200000,25.9906],[1474761600000,25.9906],[1474848000000,25.9906],[1474934400000,25.9015],[1475020800000,25.8295],[1475107200000,25.8966],[1475193600000,25.9119]], tooltip: {valueSuffix: ' грн'}, type: 'area', step: true, color: '#888888', fillColor: { linearGradient: {x1: 0, y1: 0, x2: 0, y2: 1}, stops: [[0, '#CCCCCC'], [1, 'rgba(50,50,50,0)']] }, threshold: null }, { name: 'Среднее за период', data: [[1472688000000, 26.081250],[1472688000000, 26.081250],[1472774400000, 26.615934],[1472860800000, 26.632976],[1472947200000, 26.632976],[1473033600000, 26.632976],[1473120000000, 26.787052],[1473206400000, 26.848462],[1473292800000, 26.724306],[1473379200000, 26.637804],[1473465600000, 26.674886],[1473552000000, 26.674886],[1473638400000, 26.674886],[1473724800000, 26.630711],[1473811200000, 26.425985],[1473897600000, 26.329976],[1473984000000, 26.206713],[1474070400000, 25.901081],[1474156800000, 25.901081],[1474243200000, 25.901081],[1474329600000, 25.767047],[1474416000000, 25.805527],[1474502400000, 25.974620],[1474588800000, 25.922831],[1474675200000, 25.990626],[1474761600000, 25.990626],[1474848000000, 25.990626],[1474934400000, 25.901519],[1475020800000, 25.829474],[1475107200000, 25.896643],[1475193600000, 25.911879]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });