$(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: 'Курс SGD, грн'}, 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: 'Курс SGD', data: [[1462060800000,18.7686],[1462147200000,18.7686],[1462233600000,18.7686],[1462320000000,18.7686],[1462406400000,18.5756],[1462492800000,18.5038],[1462579200000,18.5195],[1462665600000,18.5195],[1462752000000,18.5195],[1462838400000,18.5195],[1462924800000,18.3993],[1463011200000,18.51],[1463097600000,18.4564],[1463184000000,18.572],[1463270400000,18.572],[1463356800000,18.572],[1463443200000,18.5397],[1463529600000,18.4533],[1463616000000,18.333],[1463702400000,18.3062],[1463788800000,18.2422],[1463875200000,null],[1463961600000,18.2422],[1464048000000,18.204],[1464134400000,18.1737],[1464220800000,18.2087],[1464307200000,18.2249],[1464393600000,18.276],[1464480000000,18.276],[1464566400000,18.276],[1464652800000,18.2218]], 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: [[1462060800000, 18.768594],[1462060800000, 18.768594],[1462147200000, 18.768594],[1462233600000, 18.768594],[1462320000000, 18.768594],[1462406400000, 18.575566],[1462492800000, 18.503784],[1462579200000, 18.519506],[1462665600000, 18.519506],[1462752000000, 18.519506],[1462838400000, 18.519506],[1462924800000, 18.399310],[1463011200000, 18.509961],[1463097600000, 18.456405],[1463184000000, 18.571970],[1463270400000, 18.571970],[1463356800000, 18.571970],[1463443200000, 18.539698],[1463529600000, 18.453302],[1463616000000, 18.332994],[1463702400000, 18.306241],[1463788800000, 18.242190],[1463961600000, 18.242190],[1464048000000, 18.204045],[1464134400000, 18.173732],[1464220800000, 18.208686],[1464307200000, 18.224871],[1464393600000, 18.275985],[1464480000000, 18.275985],[1464566400000, 18.275985],[1464652800000, 18.221795]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });