$(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: 'Курс RUB, грн'}, 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: 'Курс RUB', data: [[1383264000000,0.24919],[1383350400000,null],[1383436800000,0.24838],[1383523200000,0.24838],[1383609600000,0.24838],[1383696000000,0.24707],[1383782400000,0.24631],[1383868800000,0.24685],[1383955200000,0.24558],[1384041600000,0.24558],[1384128000000,0.24558],[1384214400000,0.24472],[1384300800000,0.24363],[1384387200000,0.24355],[1384473600000,0.24453],[1384560000000,0.24458],[1384646400000,0.24458],[1384732800000,0.24458],[1384819200000,0.24544],[1384905600000,0.24511],[1384992000000,0.24412],[1385078400000,0.24208],[1385164800000,0.24291],[1385251200000,0.24291],[1385337600000,0.24291],[1385424000000,0.24389],[1385510400000,0.2423],[1385596800000,0.24218],[1385683200000,0.24124],[1385769600000,0.24081]], 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: [[1383264000000, 0.249190],[1383264000000, 0.249190],[1383436800000, 0.248380],[1383523200000, 0.248380],[1383609600000, 0.248380],[1383696000000, 0.247070],[1383782400000, 0.246310],[1383868800000, 0.246850],[1383955200000, 0.245580],[1384041600000, 0.245580],[1384128000000, 0.245580],[1384214400000, 0.244720],[1384300800000, 0.243630],[1384387200000, 0.243550],[1384473600000, 0.244530],[1384560000000, 0.244580],[1384646400000, 0.244580],[1384732800000, 0.244580],[1384819200000, 0.245440],[1384905600000, 0.245110],[1384992000000, 0.244120],[1385078400000, 0.242080],[1385164800000, 0.242910],[1385251200000, 0.242910],[1385337600000, 0.242910],[1385424000000, 0.243890],[1385510400000, 0.242300],[1385596800000, 0.242180],[1385683200000, 0.241240],[1385769600000, 0.240810]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });