$(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: 'Курс ISK, грн'}, 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: 'Курс ISK', data: [[1454284800000,0.197001],[1454371200000,0.195426],[1454457600000,0.199067],[1454544000000,0.198061],[1454630400000,0.203112],[1454716800000,0.203574],[1454803200000,0.203574],[1454889600000,0.203574],[1454976000000,0.203199],[1455062400000,0.204095],[1455148800000,0.204648],[1455235200000,0.206309],[1455321600000,0.206715],[1455408000000,0.206715],[1455494400000,0.206715],[1455580800000,0.21105],[1455667200000,0.212286],[1455753600000,0.208665],[1455840000000,0.20643],[1455926400000,0.208832],[1456012800000,0.208832],[1456099200000,0.208832],[1456185600000,0.209675],[1456272000000,0.210479],[1456358400000,0.210182],[1456444800000,0.210886],[1456531200000,0.209968],[1456617600000,0.209968],[1456704000000,0.209968]], 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, 0.197001],[1454284800000, 0.197001],[1454371200000, 0.195426],[1454457600000, 0.199067],[1454544000000, 0.198061],[1454630400000, 0.203112],[1454716800000, 0.203574],[1454803200000, 0.203574],[1454889600000, 0.203574],[1454976000000, 0.203199],[1455062400000, 0.204095],[1455148800000, 0.204648],[1455235200000, 0.206309],[1455321600000, 0.206715],[1455408000000, 0.206715],[1455494400000, 0.206715],[1455580800000, 0.211050],[1455667200000, 0.212286],[1455753600000, 0.208665],[1455840000000, 0.206430],[1455926400000, 0.208832],[1456012800000, 0.208832],[1456099200000, 0.208832],[1456185600000, 0.209675],[1456272000000, 0.210479],[1456358400000, 0.210182],[1456444800000, 0.210886],[1456531200000, 0.209968],[1456617600000, 0.209968],[1456704000000, 0.209968]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });