$(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: [[980985600000,5.04656],[981072000000,5.10793],[981158400000,5.10866],[981244800000,null],[981331200000,5.10866],[981417600000,5.11843],[981504000000,5.06241],[981590400000,5.06348],[981676800000,5.00646],[981763200000,5.00989],[981849600000,5.00989],[981936000000,5.00989],[982022400000,5.04273],[982108800000,5.04273],[982195200000,4.98292],[982281600000,4.93496],[982368000000,4.94727],[982454400000,4.94727],[982540800000,4.94727],[982627200000,5.00155],[982713600000,4.92438],[982800000000,4.96536],[982886400000,4.91677],[982972800000,4.92085],[983059200000,4.92085],[983145600000,4.92085],[983232000000,4.94292],[983318400000,4.97441]], 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.046560],[980985600000, 5.046560],[981072000000, 5.107930],[981158400000, 5.108660],[981331200000, 5.108660],[981417600000, 5.118430],[981504000000, 5.062410],[981590400000, 5.063480],[981676800000, 5.006460],[981763200000, 5.009890],[981849600000, 5.009890],[981936000000, 5.009890],[982022400000, 5.042730],[982108800000, 5.042730],[982195200000, 4.982920],[982281600000, 4.934960],[982368000000, 4.947270],[982454400000, 4.947270],[982540800000, 4.947270],[982627200000, 5.001550],[982713600000, 4.924380],[982800000000, 4.965360],[982886400000, 4.916770],[982972800000, 4.920850],[983059200000, 4.920850],[983145600000, 4.920850],[983232000000, 4.942920],[983318400000, 4.974410]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });