$(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: 'Курс GBP, грн'}, 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: 'Курс GBP', data: [[1028160000000,8.28993],[1028246400000,8.35794],[1028332800000,8.35794],[1028419200000,8.35794],[1028505600000,8.32413],[1028592000000,8.22307],[1028678400000,8.22307],[1028764800000,8.18898],[1028851200000,8.15828],[1028937600000,8.15828],[1029024000000,8.15828],[1029110400000,8.16123],[1029196800000,8.16123],[1029283200000,8.21519],[1029369600000,8.16512],[1029456000000,8.17702],[1029542400000,8.17702],[1029628800000,8.17702],[1029715200000,8.18478],[1029801600000,8.18478],[1029888000000,8.12108],[1029974400000,8.12108],[1030060800000,8.09526],[1030147200000,8.09526],[1030233600000,8.09526],[1030320000000,8.09526],[1030406400000,8.09526],[1030492800000,8.18936],[1030579200000,8.18936],[1030665600000,8.24984],[1030752000000,8.24984]], 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: [[1028160000000, 8.289930],[1028160000000, 8.289930],[1028246400000, 8.357940],[1028332800000, 8.357940],[1028419200000, 8.357940],[1028505600000, 8.324130],[1028592000000, 8.223070],[1028678400000, 8.223070],[1028764800000, 8.188980],[1028851200000, 8.158280],[1028937600000, 8.158280],[1029024000000, 8.158280],[1029110400000, 8.161230],[1029196800000, 8.161230],[1029283200000, 8.215190],[1029369600000, 8.165120],[1029456000000, 8.177020],[1029542400000, 8.177020],[1029628800000, 8.177020],[1029715200000, 8.184780],[1029801600000, 8.184780],[1029888000000, 8.121080],[1029974400000, 8.121080],[1030060800000, 8.095260],[1030147200000, 8.095260],[1030233600000, 8.095260],[1030320000000, 8.095260],[1030406400000, 8.095260],[1030492800000, 8.189360],[1030579200000, 8.189360],[1030665600000, 8.249840],[1030752000000, 8.249840]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });