$(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: 'Курс DKK, грн'}, 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: 'Курс DKK', data: [[1412121600000,2.20964],[1412208000000,2.19016],[1412294400000,2.19258],[1412380800000,2.19578],[1412467200000,2.19578],[1412553600000,2.19578],[1412640000000,2.19456],[1412726400000,2.18866],[1412812800000,2.19322],[1412899200000,2.19648],[1412985600000,2.22048],[1413072000000,2.22048],[1413158400000,2.22048],[1413244800000,2.19921],[1413331200000,2.20599],[1413417600000,2.20017],[1413504000000,2.20331],[1413590400000,2.21765],[1413676800000,2.21765],[1413763200000,2.21765],[1413849600000,2.23036],[1413936000000,2.22127],[1414022400000,2.21927],[1414108800000,2.2074],[1414195200000,2.20338],[1414281600000,2.20338],[1414368000000,2.20338],[1414454400000,2.20195],[1414540800000,2.20572],[1414627200000,2.21814],[1414713600000,2.21613]], 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: [[1412121600000, 2.209636],[1412121600000, 2.209636],[1412208000000, 2.190156],[1412294400000, 2.192578],[1412380800000, 2.195776],[1412467200000, 2.195776],[1412553600000, 2.195776],[1412640000000, 2.194559],[1412726400000, 2.188658],[1412812800000, 2.193219],[1412899200000, 2.196478],[1412985600000, 2.220476],[1413072000000, 2.220476],[1413158400000, 2.220476],[1413244800000, 2.199214],[1413331200000, 2.205988],[1413417600000, 2.200168],[1413504000000, 2.203310],[1413590400000, 2.217650],[1413676800000, 2.217650],[1413763200000, 2.217650],[1413849600000, 2.230363],[1413936000000, 2.221267],[1414022400000, 2.219268],[1414108800000, 2.207398],[1414195200000, 2.203379],[1414281600000, 2.203379],[1414368000000, 2.203379],[1414454400000, 2.201951],[1414540800000, 2.205723],[1414627200000, 2.218139],[1414713600000, 2.216128]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });