$(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: [[980985600000,0.19121],[981072000000,0.19095],[981158400000,0.19089],[981244800000,null],[981331200000,0.19089],[981417600000,0.19095],[981504000000,0.19088],[981590400000,0.19073],[981676800000,0.19053],[981763200000,0.18991],[981849600000,0.18991],[981936000000,0.18991],[982022400000,0.18931],[982108800000,0.18931],[982195200000,0.18937],[982281600000,0.1893],[982368000000,0.18942],[982454400000,0.18942],[982540800000,0.18942],[982627200000,0.18942],[982713600000,0.18924],[982800000000,0.18949],[982886400000,0.18977],[982972800000,0.1893],[983059200000,0.1893],[983145600000,0.1893],[983232000000,0.18876],[983318400000,0.18903]], 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, 0.191210],[980985600000, 0.191210],[981072000000, 0.190950],[981158400000, 0.190890],[981331200000, 0.190890],[981417600000, 0.190950],[981504000000, 0.190880],[981590400000, 0.190730],[981676800000, 0.190530],[981763200000, 0.189910],[981849600000, 0.189910],[981936000000, 0.189910],[982022400000, 0.189310],[982108800000, 0.189310],[982195200000, 0.189370],[982281600000, 0.189300],[982368000000, 0.189420],[982454400000, 0.189420],[982540800000, 0.189420],[982627200000, 0.189420],[982713600000, 0.189240],[982800000000, 0.189490],[982886400000, 0.189770],[982972800000, 0.189300],[983059200000, 0.189300],[983145600000, 0.189300],[983232000000, 0.188760],[983318400000, 0.189030]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });