$(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: [[1120262400000,6.10998],[1120348800000,6.10998],[1120435200000,6.10998],[1120521600000,6.01242],[1120608000000,6.00686],[1120694400000,6.02202],[1120780800000,6.04426],[1120867200000,6.01747],[1120953600000,6.01747],[1121040000000,6.01747],[1121126400000,6.06903],[1121212800000,6.14991],[1121299200000,6.15901],[1121385600000,6.09987],[1121472000000,6.1029],[1121558400000,6.1029],[1121644800000,6.1029],[1121731200000,6.0933],[1121817600000,6.04831],[1121904000000,6.09182],[1121990400000,6.15444],[1122076800000,6.13222],[1122163200000,6.13222],[1122249600000,6.13222],[1122336000000,6.09283],[1122422400000,6.05344],[1122508800000,6.05495],[1122595200000,6.1105],[1122681600000,6.10696],[1122768000000,6.10696]], 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: [[1120262400000, 6.109979],[1120262400000, 6.109979],[1120348800000, 6.109979],[1120435200000, 6.109979],[1120521600000, 6.012417],[1120608000000, 6.006857],[1120694400000, 6.022022],[1120780800000, 6.044264],[1120867200000, 6.017472],[1120953600000, 6.017472],[1121040000000, 6.017472],[1121126400000, 6.069033],[1121212800000, 6.149913],[1121299200000, 6.159012],[1121385600000, 6.099869],[1121472000000, 6.102901],[1121558400000, 6.102901],[1121644800000, 6.102901],[1121731200000, 6.093297],[1121817600000, 6.048307],[1121904000000, 6.091815],[1121990400000, 6.154435],[1122076800000, 6.132215],[1122163200000, 6.132215],[1122249600000, 6.132215],[1122336000000, 6.092825],[1122422400000, 6.053435],[1122508800000, 6.054950],[1122595200000, 6.110500],[1122681600000, 6.106965],[1122768000000, 6.106965]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });