$(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: 'Курс TRY, грн'}, 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: 'Курс TRY', data: [[1196467200000,4.29891],[1196553600000,4.29891],[1196640000000,4.29891],[1196726400000,4.27124],[1196812800000,4.25262],[1196899200000,4.28944],[1196985600000,4.28558],[1197072000000,4.30477],[1197158400000,4.30477],[1197244800000,4.30477],[1197331200000,4.32379],[1197417600000,4.31404],[1197504000000,4.30539],[1197590400000,4.30324],[1197676800000,4.27432],[1197763200000,4.27432],[1197849600000,4.27432],[1197936000000,4.24535],[1198022400000,4.24594],[1198108800000,4.2267],[1198195200000,4.22472],[1198281600000,4.22892],[1198368000000,4.22892],[1198454400000,4.22892],[1198540800000,4.26501],[1198627200000,4.26501],[1198713600000,4.26501],[1198800000000,4.29392],[1198886400000,4.31916]], 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: [[1196467200000, 4.298907],[1196467200000, 4.298907],[1196553600000, 4.298907],[1196640000000, 4.298907],[1196726400000, 4.271240],[1196812800000, 4.252616],[1196899200000, 4.289440],[1196985600000, 4.285580],[1197072000000, 4.304769],[1197158400000, 4.304769],[1197244800000, 4.304769],[1197331200000, 4.323787],[1197417600000, 4.314038],[1197504000000, 4.305394],[1197590400000, 4.303241],[1197676800000, 4.274323],[1197763200000, 4.274323],[1197849600000, 4.274323],[1197936000000, 4.245351],[1198022400000, 4.245935],[1198108800000, 4.226698],[1198195200000, 4.224723],[1198281600000, 4.228919],[1198368000000, 4.228919],[1198454400000, 4.228919],[1198540800000, 4.265011],[1198627200000, 4.265011],[1198713600000, 4.265011],[1198800000000, 4.293920],[1198886400000, 4.319164]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });