$(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: [[1435708800000,5.60777],[1435795200000,5.5648],[1435881600000,5.5457],[1435968000000,5.55878],[1436054400000,5.55878],[1436140800000,5.55878],[1436227200000,5.57303],[1436313600000,5.65465],[1436400000000,5.7347],[1436486400000,5.73222],[1436572800000,5.87067],[1436659200000,5.87067],[1436745600000,5.87067],[1436832000000,5.85202],[1436918400000,5.84652],[1437004800000,5.89438],[1437091200000,5.81563],[1437177600000,5.83929],[1437264000000,5.83929],[1437350400000,5.83929],[1437436800000,5.80703],[1437523200000,5.81718],[1437609600000,5.82353],[1437696000000,5.87331],[1437782400000,5.84853],[1437868800000,5.84853],[1437955200000,5.84853],[1438041600000,5.84853],[1438128000000,5.89544],[1438214400000,5.88209],[1438300800000,5.71518]], 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: [[1435708800000, 5.607774],[1435708800000, 5.607774],[1435795200000, 5.564801],[1435881600000, 5.545698],[1435968000000, 5.558777],[1436054400000, 5.558777],[1436140800000, 5.558777],[1436227200000, 5.573027],[1436313600000, 5.654649],[1436400000000, 5.734704],[1436486400000, 5.732216],[1436572800000, 5.870674],[1436659200000, 5.870674],[1436745600000, 5.870674],[1436832000000, 5.852022],[1436918400000, 5.846522],[1437004800000, 5.894383],[1437091200000, 5.815630],[1437177600000, 5.839293],[1437264000000, 5.839293],[1437350400000, 5.839293],[1437436800000, 5.807027],[1437523200000, 5.817182],[1437609600000, 5.823526],[1437696000000, 5.873308],[1437782400000, 5.848526],[1437868800000, 5.848526],[1437955200000, 5.848526],[1438041600000, 5.848526],[1438128000000, 5.895441],[1438214400000, 5.882087],[1438300800000, 5.715179]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });