$(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: 'Курс EUR, грн'}, 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: 'Курс EUR', data: [[1028160000000,5.2011],[1028246400000,5.26132],[1028332800000,5.26132],[1028419200000,5.26132],[1028505600000,5.2417],[1028592000000,5.16327],[1028678400000,5.16327],[1028764800000,5.16806],[1028851200000,5.18458],[1028937600000,5.18458],[1029024000000,5.18458],[1029110400000,5.21176],[1029196800000,5.21176],[1029283200000,5.2528],[1029369600000,5.21016],[1029456000000,5.23574],[1029542400000,5.23574],[1029628800000,5.23574],[1029715200000,5.22189],[1029801600000,5.22189],[1029888000000,5.20236],[1029974400000,5.20236],[1030060800000,5.16802],[1030147200000,5.16802],[1030233600000,5.16802],[1030320000000,5.16802],[1030406400000,5.16802],[1030492800000,5.23628],[1030579200000,5.23628],[1030665600000,5.2403],[1030752000000,5.2403]], 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, 5.201100],[1028160000000, 5.201100],[1028246400000, 5.261320],[1028332800000, 5.261320],[1028419200000, 5.261320],[1028505600000, 5.241700],[1028592000000, 5.163270],[1028678400000, 5.163270],[1028764800000, 5.168060],[1028851200000, 5.184580],[1028937600000, 5.184580],[1029024000000, 5.184580],[1029110400000, 5.211760],[1029196800000, 5.211760],[1029283200000, 5.252800],[1029369600000, 5.210160],[1029456000000, 5.235740],[1029542400000, 5.235740],[1029628800000, 5.235740],[1029715200000, 5.221890],[1029801600000, 5.221890],[1029888000000, 5.202360],[1029974400000, 5.202360],[1030060800000, 5.168020],[1030147200000, 5.168020],[1030233600000, 5.168020],[1030320000000, 5.168020],[1030406400000, 5.168020],[1030492800000, 5.236280],[1030579200000, 5.236280],[1030665600000, 5.240300],[1030752000000, 5.240300]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });