$(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: 'Курс SEK, грн'}, 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: 'Курс SEK', data: [[1454284800000,2.98515],[1454371200000,2.98357],[1454457600000,3.02348],[1454544000000,3.00235],[1454630400000,3.08555],[1454716800000,3.07742],[1454803200000,3.07742],[1454889600000,3.07742],[1454976000000,3.04606],[1455062400000,3.06398],[1455148800000,3.06866],[1455235200000,3.10934],[1455321600000,3.11806],[1455408000000,3.11806],[1455494400000,3.11806],[1455580800000,3.16066],[1455667200000,3.18447],[1455753600000,3.14174],[1455840000000,3.11983],[1455926400000,3.1756],[1456012800000,3.1756],[1456099200000,3.1756],[1456185600000,3.18324],[1456272000000,3.20422],[1456358400000,3.19202],[1456444800000,3.20304],[1456531200000,3.17747],[1456617600000,3.17747],[1456704000000,3.17747]], 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: [[1454284800000, 2.985151],[1454284800000, 2.985151],[1454371200000, 2.983574],[1454457600000, 3.023477],[1454544000000, 3.002354],[1454630400000, 3.085555],[1454716800000, 3.077417],[1454803200000, 3.077417],[1454889600000, 3.077417],[1454976000000, 3.046062],[1455062400000, 3.063976],[1455148800000, 3.068660],[1455235200000, 3.109335],[1455321600000, 3.118057],[1455408000000, 3.118057],[1455494400000, 3.118057],[1455580800000, 3.160656],[1455667200000, 3.184470],[1455753600000, 3.141742],[1455840000000, 3.119829],[1455926400000, 3.175596],[1456012800000, 3.175596],[1456099200000, 3.175596],[1456185600000, 3.183238],[1456272000000, 3.204223],[1456358400000, 3.192018],[1456444800000, 3.203040],[1456531200000, 3.177469],[1456617600000, 3.177469],[1456704000000, 3.177469]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });