$(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: [[980985600000,7.92613],[981072000000,8.01747],[981158400000,8.02744],[981244800000,null],[981331200000,8.02744],[981417600000,8.01383],[981504000000,7.95225],[981590400000,7.93151],[981676800000,7.87799],[981763200000,7.85003],[981849600000,7.85003],[981936000000,7.85003],[982022400000,7.88173],[982108800000,7.88173],[982195200000,7.90187],[982281600000,7.85947],[982368000000,7.8728],[982454400000,7.8728],[982540800000,7.8728],[982627200000,7.88391],[982713600000,7.79914],[982800000000,7.83799],[982886400000,7.84174],[982972800000,7.8545],[983059200000,7.8545],[983145600000,7.8545],[983232000000,7.86714],[983318400000,7.83495]], 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, 7.926130],[980985600000, 7.926130],[981072000000, 8.017470],[981158400000, 8.027440],[981331200000, 8.027440],[981417600000, 8.013830],[981504000000, 7.952250],[981590400000, 7.931510],[981676800000, 7.877990],[981763200000, 7.850030],[981849600000, 7.850030],[981936000000, 7.850030],[982022400000, 7.881730],[982108800000, 7.881730],[982195200000, 7.901870],[982281600000, 7.859470],[982368000000, 7.872800],[982454400000, 7.872800],[982540800000, 7.872800],[982627200000, 7.883910],[982713600000, 7.799140],[982800000000, 7.837990],[982886400000, 7.841740],[982972800000, 7.854500],[983059200000, 7.854500],[983145600000, 7.854500],[983232000000, 7.867140],[983318400000, 7.834950]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });