$(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: [[1175385600000,3.64432],[1175472000000,3.64432],[1175558400000,3.63853],[1175644800000,3.6517],[1175731200000,3.68215],[1175817600000,3.68634],[1175904000000,3.68634],[1175990400000,3.68634],[1176076800000,3.68634],[1176163200000,3.68634],[1176249600000,3.68085],[1176336000000,3.68767],[1176422400000,3.66622],[1176508800000,3.67362],[1176595200000,3.67362],[1176681600000,3.67362],[1176768000000,3.7199],[1176854400000,3.72448],[1176940800000,3.73523],[1177027200000,3.72075],[1177113600000,3.77177],[1177200000000,3.77177],[1177286400000,3.77177],[1177372800000,3.76066],[1177459200000,3.77174],[1177545600000,3.79389],[1177632000000,3.78604],[1177718400000,3.77705],[1177804800000,3.77705],[1177891200000,3.77705]], 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: [[1175385600000, 3.644319],[1175385600000, 3.644319],[1175472000000, 3.644319],[1175558400000, 3.638526],[1175644800000, 3.651702],[1175731200000, 3.682154],[1175817600000, 3.686335],[1175904000000, 3.686335],[1175990400000, 3.686335],[1176076800000, 3.686335],[1176163200000, 3.686335],[1176249600000, 3.680852],[1176336000000, 3.687668],[1176422400000, 3.666218],[1176508800000, 3.673616],[1176595200000, 3.673616],[1176681600000, 3.673616],[1176768000000, 3.719897],[1176854400000, 3.724482],[1176940800000, 3.735228],[1177027200000, 3.720750],[1177113600000, 3.771768],[1177200000000, 3.771768],[1177286400000, 3.771768],[1177372800000, 3.760662],[1177459200000, 3.771740],[1177545600000, 3.793893],[1177632000000, 3.786038],[1177718400000, 3.777049],[1177804800000, 3.777049],[1177891200000, 3.777049]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });