$(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: [[1122854400000,8.85966],[1122940800000,8.92478],[1123027200000,8.95051],[1123113600000,8.99369],[1123200000000,8.96605],[1123286400000,null],[1123372800000,null],[1123459200000,null],[1123545600000,null],[1123632000000,9.01333],[1123718400000,9.05394],[1123804800000,9.10211],[1123891200000,9.16023],[1123977600000,9.16023],[1124064000000,9.16023],[1124150400000,9.14112],[1124236800000,9.12476],[1124323200000,9.141],[1124409600000,9.10275],[1124496000000,9.06901],[1124582400000,9.06901],[1124668800000,9.06901],[1124755200000,9.1081],[1124841600000,9.08213],[1124928000000,9.08213],[1125014400000,9.08704],[1125100800000,9.11496],[1125187200000,9.11496],[1125273600000,9.11496],[1125360000000,9.10497],[1125446400000,9.00975]], 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: [[1122854400000, 8.859662],[1122854400000, 8.859662],[1122940800000, 8.924783],[1123027200000, 8.950508],[1123113600000, 8.993691],[1123200000000, 8.966052],[1123632000000, 9.013328],[1123718400000, 9.053936],[1123804800000, 9.102107],[1123891200000, 9.160226],[1123977600000, 9.160226],[1124064000000, 9.160226],[1124150400000, 9.141121],[1124236800000, 9.124756],[1124323200000, 9.140998],[1124409600000, 9.102745],[1124496000000, 9.069008],[1124582400000, 9.069008],[1124668800000, 9.069008],[1124755200000, 9.108096],[1124841600000, 9.082130],[1124928000000, 9.082130],[1125014400000, 9.087038],[1125100800000, 9.114959],[1125187200000, 9.114959],[1125273600000, 9.114959],[1125360000000, 9.104966],[1125446400000, 9.009747]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });