$(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: 'Курс NOK, грн'}, 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: 'Курс NOK', data: [[1485907200000,3.27678],[1485993600000,3.27946],[1486080000000,3.29298],[1486166400000,3.28386],[1486252800000,3.28386],[1486339200000,3.28386],[1486425600000,3.30136],[1486512000000,3.24822],[1486598400000,3.23095],[1486684800000,3.25178],[1486771200000,3.24686],[1486857600000,3.24686],[1486944000000,3.24686],[1487030400000,3.24359],[1487116800000,3.2579],[1487203200000,3.21857],[1487289600000,3.24144],[1487376000000,3.24698],[1487462400000,3.24698],[1487548800000,3.24698],[1487635200000,3.23933],[1487721600000,3.23297],[1487808000000,3.21675],[1487894400000,3.23016],[1487980800000,3.23878],[1488067200000,3.23878],[1488153600000,3.23878],[1488240000000,3.24064]], 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: [[1485907200000, 3.276782],[1485907200000, 3.276782],[1485993600000, 3.279464],[1486080000000, 3.292975],[1486166400000, 3.283856],[1486252800000, 3.283856],[1486339200000, 3.283856],[1486425600000, 3.301361],[1486512000000, 3.248221],[1486598400000, 3.230954],[1486684800000, 3.251776],[1486771200000, 3.246858],[1486857600000, 3.246858],[1486944000000, 3.246858],[1487030400000, 3.243591],[1487116800000, 3.257903],[1487203200000, 3.218570],[1487289600000, 3.241442],[1487376000000, 3.246978],[1487462400000, 3.246978],[1487548800000, 3.246978],[1487635200000, 3.239325],[1487721600000, 3.232967],[1487808000000, 3.216746],[1487894400000, 3.230160],[1487980800000, 3.238776],[1488067200000, 3.238776],[1488153600000, 3.238776],[1488240000000, 3.240637]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });