$(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: [[1096588800000,5.3076],[1096675200000,null],[1096761600000,null],[1096848000000,5.3076],[1096934400000,5.3075],[1097020800000,5.3074],[1097107200000,5.3073],[1097193600000,5.3072],[1097280000000,5.3072],[1097366400000,5.3072],[1097452800000,5.3071],[1097539200000,5.3071],[1097625600000,5.3071],[1097712000000,5.307],[1097798400000,5.3069],[1097884800000,null],[1097971200000,5.3067],[1098057600000,5.3067],[1098144000000,5.3066],[1098230400000,5.3066],[1098316800000,5.3066],[1098403200000,5.3065],[1098489600000,5.3065],[1098576000000,5.3065],[1098662400000,5.3065],[1098748800000,5.3065],[1098835200000,5.3065],[1098921600000,5.3065],[1099008000000,5.3065],[1099094400000,5.3065],[1099180800000,5.3065]], 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: [[1096588800000, 5.307600],[1096588800000, 5.307600],[1096848000000, 5.307600],[1096934400000, 5.307500],[1097020800000, 5.307400],[1097107200000, 5.307300],[1097193600000, 5.307200],[1097280000000, 5.307200],[1097366400000, 5.307200],[1097452800000, 5.307100],[1097539200000, 5.307100],[1097625600000, 5.307100],[1097712000000, 5.307000],[1097798400000, 5.306900],[1097971200000, 5.306700],[1098057600000, 5.306700],[1098144000000, 5.306600],[1098230400000, 5.306600],[1098316800000, 5.306600],[1098403200000, 5.306500],[1098489600000, 5.306500],[1098576000000, 5.306500],[1098662400000, 5.306500],[1098748800000, 5.306500],[1098835200000, 5.306500],[1098921600000, 5.306500],[1099008000000, 5.306500],[1099094400000, 5.306500],[1099180800000, 5.306500]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });