$(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: 'Курс GBP, грн'}, 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: 'Курс GBP', data: [[1409529600000,22.5673],[1409616000000,21.7464],[1409702400000,21.6188],[1409788800000,20.7166],[1409875200000,null],[1409961600000,21.0389],[1410048000000,21.0389],[1410134400000,21.0389],[1410220800000,20.8949],[1410307200000,20.858],[1410393600000,20.875],[1410480000000,20.9391],[1410566400000,21.0378],[1410652800000,21.0378],[1410739200000,21.0378],[1410825600000,20.9453],[1410912000000,21.0944],[1410998400000,21.1966],[1411084800000,21.9172],[1411171200000,null],[1411257600000,21.9363],[1411344000000,21.9363],[1411430400000,null],[1411516800000,22.0879],[1411603200000,21.2312],[1411689600000,21.2328],[1411776000000,21.0272],[1411862400000,21.0272],[1411948800000,21.0272],[1412035200000,21.0512]], 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: [[1409529600000, 22.567266],[1409529600000, 22.567266],[1409616000000, 21.746374],[1409702400000, 21.618808],[1409788800000, 20.716560],[1409961600000, 21.038948],[1410048000000, 21.038948],[1410134400000, 21.038948],[1410220800000, 20.894920],[1410307200000, 20.857960],[1410393600000, 20.874959],[1410480000000, 20.939087],[1410566400000, 21.037781],[1410652800000, 21.037781],[1410739200000, 21.037781],[1410825600000, 20.945271],[1410912000000, 21.094442],[1410998400000, 21.196559],[1411084800000, 21.917164],[1411257600000, 21.936339],[1411344000000, 21.936339],[1411516800000, 22.087863],[1411603200000, 21.231166],[1411689600000, 21.232780],[1411776000000, 21.027239],[1411862400000, 21.027239],[1411948800000, 21.027239],[1412035200000, 21.051223]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });