$(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: [[1128124800000,1.55192],[1128211200000,1.55192],[1128297600000,1.55192],[1128384000000,1.53807],[1128470400000,1.53293],[1128556800000,1.54157],[1128643200000,1.54295],[1128729600000,1.56355],[1128816000000,1.56355],[1128902400000,1.56355],[1128988800000,1.57128],[1129075200000,1.56674],[1129161600000,1.56109],[1129248000000,1.54232],[1129334400000,1.54095],[1129420800000,1.54095],[1129507200000,1.54095],[1129593600000,1.55849],[1129680000000,1.55162],[1129766400000,1.54658],[1129852800000,1.54776],[1129939200000,1.559],[1130025600000,1.559],[1130112000000,1.559],[1130198400000,1.54296],[1130284800000,1.54523],[1130371200000,1.53713],[1130457600000,1.52912],[1130544000000,1.53646],[1130630400000,1.53646],[1130716800000,1.53646]], 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: [[1128124800000, 1.551923],[1128124800000, 1.551923],[1128211200000, 1.551923],[1128297600000, 1.551923],[1128384000000, 1.538072],[1128470400000, 1.532926],[1128556800000, 1.541568],[1128643200000, 1.542953],[1128729600000, 1.563552],[1128816000000, 1.563552],[1128902400000, 1.563552],[1128988800000, 1.571284],[1129075200000, 1.566738],[1129161600000, 1.561086],[1129248000000, 1.542319],[1129334400000, 1.540954],[1129420800000, 1.540954],[1129507200000, 1.540954],[1129593600000, 1.558493],[1129680000000, 1.551616],[1129766400000, 1.546579],[1129852800000, 1.547760],[1129939200000, 1.558998],[1130025600000, 1.558998],[1130112000000, 1.558998],[1130198400000, 1.542955],[1130284800000, 1.545231],[1130371200000, 1.537128],[1130457600000, 1.529119],[1130544000000, 1.536456],[1130630400000, 1.536456],[1130716800000, 1.536456]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });