$(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: [[1141171200000,1.58333],[1141257600000,1.59923],[1141344000000,1.5949],[1141430400000,1.59676],[1141516800000,1.59676],[1141603200000,1.59676],[1141689600000,1.58959],[1141776000000,1.5601],[1141862400000,1.5601],[1141948800000,1.55292],[1142035200000,1.54126],[1142121600000,1.54126],[1142208000000,1.54126],[1142294400000,1.53173],[1142380800000,1.53608],[1142467200000,1.56262],[1142553600000,1.56551],[1142640000000,1.60383],[1142726400000,1.60383],[1142812800000,1.60383],[1142899200000,1.58234],[1142985600000,1.57394],[1143072000000,1.55747],[1143158400000,1.56881],[1143244800000,1.54686],[1143331200000,1.54686],[1143417600000,1.54686],[1143504000000,1.55517],[1143590400000,1.54923],[1143676800000,1.53203],[1143763200000,1.55583]], 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: [[1141171200000, 1.583333],[1141171200000, 1.583333],[1141257600000, 1.599229],[1141344000000, 1.594899],[1141430400000, 1.596764],[1141516800000, 1.596764],[1141603200000, 1.596764],[1141689600000, 1.589592],[1141776000000, 1.560102],[1141862400000, 1.560102],[1141948800000, 1.552924],[1142035200000, 1.541263],[1142121600000, 1.541263],[1142208000000, 1.541263],[1142294400000, 1.531728],[1142380800000, 1.536085],[1142467200000, 1.562622],[1142553600000, 1.565510],[1142640000000, 1.603833],[1142726400000, 1.603833],[1142812800000, 1.603833],[1142899200000, 1.582341],[1142985600000, 1.573945],[1143072000000, 1.557469],[1143158400000, 1.568812],[1143244800000, 1.546857],[1143331200000, 1.546857],[1143417600000, 1.546857],[1143504000000, 1.555169],[1143590400000, 1.549231],[1143676800000, 1.532027],[1143763200000, 1.555825]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });