$(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: 'Курс USD, грн'}, 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: 'Курс USD', data: [[980985600000,5.4305],[981072000000,5.4305],[981158400000,5.4307],[981244800000,null],[981331200000,5.4307],[981417600000,5.4307],[981504000000,5.4306],[981590400000,5.43],[981676800000,5.43],[981763200000,5.4296],[981849600000,5.4296],[981936000000,5.4296],[982022400000,5.4293],[982108800000,5.4293],[982195200000,5.4292],[982281600000,5.429],[982368000000,5.4288],[982454400000,5.4288],[982540800000,5.4288],[982627200000,5.4288],[982713600000,5.4293],[982800000000,5.429],[982886400000,5.4293],[982972800000,5.429],[983059200000,5.429],[983145600000,5.429],[983232000000,5.4288],[983318400000,5.4288]], 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: [[980985600000, 5.430500],[980985600000, 5.430500],[981072000000, 5.430500],[981158400000, 5.430700],[981331200000, 5.430700],[981417600000, 5.430700],[981504000000, 5.430600],[981590400000, 5.430000],[981676800000, 5.430000],[981763200000, 5.429600],[981849600000, 5.429600],[981936000000, 5.429600],[982022400000, 5.429300],[982108800000, 5.429300],[982195200000, 5.429200],[982281600000, 5.429000],[982368000000, 5.428800],[982454400000, 5.428800],[982540800000, 5.428800],[982627200000, 5.428800],[982713600000, 5.429300],[982800000000, 5.429000],[982886400000, 5.429300],[982972800000, 5.429000],[983059200000, 5.429000],[983145600000, 5.429000],[983232000000, 5.428800],[983318400000, 5.428800]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });