$(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: 'Курс EUR, грн'}, 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: 'Курс EUR', data: [[1462060800000,28.7366],[1462147200000,28.7366],[1462233600000,28.7366],[1462320000000,28.7366],[1462406400000,28.9872],[1462492800000,28.7382],[1462579200000,28.7534],[1462665600000,28.7534],[1462752000000,28.7534],[1462838400000,28.7534],[1462924800000,28.6606],[1463011200000,28.894],[1463097600000,28.8289],[1463184000000,28.8831],[1463270400000,28.8831],[1463356800000,28.8831],[1463443200000,28.7569],[1463529600000,28.6045],[1463616000000,28.4876],[1463702400000,28.2831],[1463788800000,28.2736],[1463875200000,null],[1463961600000,28.2736],[1464048000000,28.1762],[1464134400000,28.0693],[1464220800000,27.9904],[1464307200000,28.0317],[1464393600000,28.0719],[1464480000000,28.0719],[1464566400000,28.0719],[1464652800000,28.0324]], 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, 28.736594],[1462060800000, 28.736594],[1462147200000, 28.736594],[1462233600000, 28.736594],[1462320000000, 28.736594],[1462406400000, 28.987171],[1462492800000, 28.738227],[1462579200000, 28.753385],[1462665600000, 28.753385],[1462752000000, 28.753385],[1462838400000, 28.753385],[1462924800000, 28.660606],[1463011200000, 28.894049],[1463097600000, 28.828905],[1463184000000, 28.883128],[1463270400000, 28.883128],[1463356800000, 28.883128],[1463443200000, 28.756925],[1463529600000, 28.604464],[1463616000000, 28.487640],[1463702400000, 28.283143],[1463788800000, 28.273570],[1463961600000, 28.273570],[1464048000000, 28.176221],[1464134400000, 28.069328],[1464220800000, 27.990393],[1464307200000, 28.031674],[1464393600000, 28.071913],[1464480000000, 28.071913],[1464566400000, 28.071913],[1464652800000, 28.032410]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });