$(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: 'Курс CAD, грн'}, 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: 'Курс CAD', data: [[1462060800000,20.1152],[1462147200000,20.1152],[1462233600000,20.1152],[1462320000000,20.1152],[1462406400000,19.7595],[1462492800000,19.5965],[1462579200000,19.5375],[1462665600000,19.5375],[1462752000000,19.5375],[1462838400000,19.5375],[1462924800000,19.4388],[1463011200000,19.6746],[1463097600000,19.7539],[1463184000000,19.7573],[1463270400000,19.7573],[1463356800000,19.7573],[1463443200000,19.6508],[1463529600000,19.5506],[1463616000000,19.4628],[1463702400000,19.2678],[1463788800000,19.2285],[1463875200000,null],[1463961600000,19.2285],[1464048000000,19.109],[1464134400000,19.1156],[1464220800000,19.161],[1464307200000,19.4085],[1464393600000,19.2802],[1464480000000,19.2802],[1464566400000,19.2802],[1464652800000,19.3008]], 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, 20.115214],[1462060800000, 20.115214],[1462147200000, 20.115214],[1462233600000, 20.115214],[1462320000000, 20.115214],[1462406400000, 19.759489],[1462492800000, 19.596473],[1462579200000, 19.537532],[1462665600000, 19.537532],[1462752000000, 19.537532],[1462838400000, 19.537532],[1462924800000, 19.438827],[1463011200000, 19.674553],[1463097600000, 19.753943],[1463184000000, 19.757253],[1463270400000, 19.757253],[1463356800000, 19.757253],[1463443200000, 19.650762],[1463529600000, 19.550587],[1463616000000, 19.462759],[1463702400000, 19.267759],[1463788800000, 19.228489],[1463961600000, 19.228489],[1464048000000, 19.109000],[1464134400000, 19.115587],[1464220800000, 19.161003],[1464307200000, 19.408485],[1464393600000, 19.280160],[1464480000000, 19.280160],[1464566400000, 19.280160],[1464652800000, 19.300750]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });