$(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: 'Курс EUR, грн'}, 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: 'Курс EUR', data: [[1096588800000,6.5862],[1096675200000,null],[1096761600000,null],[1096848000000,6.58832],[1096934400000,6.53088],[1097020800000,6.53022],[1097107200000,6.51843],[1097193600000,6.52839],[1097280000000,6.52839],[1097366400000,6.52839],[1097452800000,6.53569],[1097539200000,6.57656],[1097625600000,6.5341],[1097712000000,6.5101],[1097798400000,6.56835],[1097884800000,null],[1097971200000,6.58774],[1098057600000,6.58774],[1098144000000,6.61945],[1098230400000,6.63803],[1098316800000,6.68101],[1098403200000,6.68937],[1098489600000,6.68937],[1098576000000,6.68937],[1098662400000,6.68937],[1098748800000,6.78807],[1098835200000,6.78383],[1098921600000,6.78807],[1099008000000,6.74509],[1099094400000,6.75889],[1099180800000,6.75889]], 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, 6.586200],[1096588800000, 6.586200],[1096848000000, 6.588320],[1096934400000, 6.530880],[1097020800000, 6.530220],[1097107200000, 6.518430],[1097193600000, 6.528390],[1097280000000, 6.528390],[1097366400000, 6.528390],[1097452800000, 6.535690],[1097539200000, 6.576560],[1097625600000, 6.534100],[1097712000000, 6.510100],[1097798400000, 6.568350],[1097971200000, 6.587740],[1098057600000, 6.587740],[1098144000000, 6.619450],[1098230400000, 6.638030],[1098316800000, 6.681010],[1098403200000, 6.689370],[1098489600000, 6.689370],[1098576000000, 6.689370],[1098662400000, 6.689370],[1098748800000, 6.788070],[1098835200000, 6.783830],[1098921600000, 6.788070],[1099008000000, 6.745090],[1099094400000, 6.758890],[1099180800000, 6.758890]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });