$(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: 'Курс RUB, грн'}, 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: 'Курс RUB', data: [[1064966400000,0.17416],[1065052800000,0.17441],[1065139200000,0.17516],[1065225600000,0.17516],[1065312000000,0.17516],[1065398400000,0.17503],[1065484800000,0.17548],[1065571200000,0.17548],[1065657600000,0.17634],[1065744000000,0.17634],[1065830400000,0.17634],[1065916800000,0.17634],[1066003200000,0.17634],[1066089600000,0.17738],[1066176000000,0.17634],[1066262400000,0.17699],[1066348800000,0.17729],[1066435200000,0.17729],[1066521600000,0.17729],[1066608000000,0.17729],[1066694400000,0.17762],[1066780800000,0.17814],[1066867200000,0.1782],[1066953600000,0.17823],[1067040000000,0.17823],[1067126400000,0.17823],[1067212800000,0.17823],[1067299200000,0.17723],[1067385600000,0.17812],[1067472000000,0.17881],[1067558400000,0.17857]], 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: [[1064966400000, 0.174160],[1064966400000, 0.174160],[1065052800000, 0.174410],[1065139200000, 0.175160],[1065225600000, 0.175160],[1065312000000, 0.175160],[1065398400000, 0.175030],[1065484800000, 0.175480],[1065571200000, 0.175480],[1065657600000, 0.176340],[1065744000000, 0.176340],[1065830400000, 0.176340],[1065916800000, 0.176340],[1066003200000, 0.176340],[1066089600000, 0.177380],[1066176000000, 0.176340],[1066262400000, 0.176990],[1066348800000, 0.177290],[1066435200000, 0.177290],[1066521600000, 0.177290],[1066608000000, 0.177290],[1066694400000, 0.177620],[1066780800000, 0.178140],[1066867200000, 0.178200],[1066953600000, 0.178230],[1067040000000, 0.178230],[1067126400000, 0.178230],[1067212800000, 0.178230],[1067299200000, 0.177230],[1067385600000, 0.178120],[1067472000000, 0.178810],[1067558400000, 0.178570]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });