$(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: [[1051747200000,5.93683],[1051833600000,5.93683],[1051920000000,5.93683],[1052006400000,5.93683],[1052092800000,5.93683],[1052179200000,5.98312],[1052265600000,6.05032],[1052352000000,6.09863],[1052438400000,6.09863],[1052524800000,6.09863],[1052611200000,6.09863],[1052697600000,6.09863],[1052784000000,6.18491],[1052870400000,6.14266],[1052956800000,6.13253],[1053043200000,6.1288],[1053129600000,6.1288],[1053216000000,6.1288],[1053302400000,6.21413],[1053388800000,6.20986],[1053475200000,6.20986],[1053561600000,6.25028],[1053648000000,6.28761],[1053734400000,6.28761],[1053820800000,6.28761],[1053907200000,null],[1053993600000,6.29987],[1054080000000,6.3468],[1054166400000,6.26947],[1054252800000,6.30467],[1054339200000,6.30467]], 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: [[1051747200000, 5.936830],[1051747200000, 5.936830],[1051833600000, 5.936830],[1051920000000, 5.936830],[1052006400000, 5.936830],[1052092800000, 5.936830],[1052179200000, 5.983120],[1052265600000, 6.050320],[1052352000000, 6.098630],[1052438400000, 6.098630],[1052524800000, 6.098630],[1052611200000, 6.098630],[1052697600000, 6.098630],[1052784000000, 6.184910],[1052870400000, 6.142660],[1052956800000, 6.132530],[1053043200000, 6.128800],[1053129600000, 6.128800],[1053216000000, 6.128800],[1053302400000, 6.214130],[1053388800000, 6.209860],[1053475200000, 6.209860],[1053561600000, 6.250280],[1053648000000, 6.287610],[1053734400000, 6.287610],[1053820800000, 6.287610],[1053993600000, 6.299870],[1054080000000, 6.346800],[1054166400000, 6.269470],[1054252800000, 6.304670],[1054339200000, 6.304670]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });