$(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: [[1491004800000,3.15096],[1491091200000,3.15096],[1491177600000,3.15096],[1491264000000,3.14984],[1491350400000,3.14679],[1491436800000,3.1635],[1491523200000,3.15256],[1491609600000,3.13086],[1491696000000,3.13086],[1491782400000,3.13086],[1491868800000,3.1156],[1491955200000,3.12899],[1492041600000,3.13084],[1492128000000,3.13696],[1492214400000,3.13087],[1492300800000,3.13087],[1492387200000,3.13087],[1492473600000,3.13087],[1492560000000,3.14797],[1492646400000,3.13884],[1492732800000,3.12094],[1492819200000,3.09249],[1492905600000,3.09249],[1492992000000,3.09249],[1493078400000,3.12987],[1493164800000,3.1135],[1493251200000,3.09817],[1493337600000,3.09431],[1493424000000,3.11349],[1493510400000,3.11349]], 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: [[1491004800000, 3.150960],[1491004800000, 3.150960],[1491091200000, 3.150960],[1491177600000, 3.150960],[1491264000000, 3.149841],[1491350400000, 3.146791],[1491436800000, 3.163503],[1491523200000, 3.152562],[1491609600000, 3.130860],[1491696000000, 3.130860],[1491782400000, 3.130860],[1491868800000, 3.115600],[1491955200000, 3.128987],[1492041600000, 3.130845],[1492128000000, 3.136956],[1492214400000, 3.130867],[1492300800000, 3.130867],[1492387200000, 3.130867],[1492473600000, 3.130867],[1492560000000, 3.147968],[1492646400000, 3.138837],[1492732800000, 3.120941],[1492819200000, 3.092490],[1492905600000, 3.092490],[1492992000000, 3.092490],[1493078400000, 3.129868],[1493164800000, 3.113498],[1493251200000, 3.098172],[1493337600000, 3.094309],[1493424000000, 3.113488],[1493510400000, 3.113488]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });