$(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: 'Курс PLN, грн'}, 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: 'Курс PLN', data: [[1451606400000,6.1847],[1451692800000,6.1847],[1451779200000,6.1847],[1451865600000,6.1847],[1451952000000,6.1847],[1452038400000,5.93212],[1452124800000,5.82067],[1452211200000,5.82067],[1452297600000,5.82067],[1452384000000,5.82067],[1452470400000,5.82067],[1452556800000,5.86344],[1452643200000,5.78678],[1452729600000,5.8841],[1452816000000,5.96606],[1452902400000,5.98204],[1452988800000,6.0304],[1453075200000,6.0304],[1453161600000,6.01595],[1453248000000,6.08345],[1453334400000,6.01714],[1453420800000,5.94342],[1453507200000,6.00968],[1453593600000,6.00968],[1453680000000,6.00968],[1453766400000,6.00883],[1453852800000,5.9919],[1453939200000,6.05658],[1454025600000,6.15776],[1454112000000,6.28544],[1454198400000,6.28544]], 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: [[1451606400000, 6.184700],[1451606400000, 6.184700],[1451692800000, 6.184700],[1451779200000, 6.184700],[1451865600000, 6.184700],[1451952000000, 6.184700],[1452038400000, 5.932122],[1452124800000, 5.820675],[1452211200000, 5.820675],[1452297600000, 5.820675],[1452384000000, 5.820675],[1452470400000, 5.820675],[1452556800000, 5.863436],[1452643200000, 5.786784],[1452729600000, 5.884105],[1452816000000, 5.966059],[1452902400000, 5.982036],[1452988800000, 6.030403],[1453075200000, 6.030403],[1453161600000, 6.015951],[1453248000000, 6.083446],[1453334400000, 6.017136],[1453420800000, 5.943423],[1453507200000, 6.009682],[1453593600000, 6.009682],[1453680000000, 6.009682],[1453766400000, 6.008827],[1453852800000, 5.991904],[1453939200000, 6.056581],[1454025600000, 6.157761],[1454112000000, 6.285439],[1454198400000, 6.285439]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });