$(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: [[993945600000,4.64105],[994032000000,4.64105],[994118400000,4.64105],[994204800000,4.64105],[994291200000,4.54814],[994377600000,4.5355],[994464000000,4.51093],[994550400000,null],[994636800000,null],[994723200000,4.54959],[994809600000,4.59439],[994896000000,4.62815],[994982400000,4.58696],[995068800000,4.58696],[995155200000,4.58696],[995241600000,4.58696],[995328000000,4.6089],[995414400000,4.57292],[995500800000,4.63837],[995587200000,4.68425],[995673600000,4.71104],[995760000000,4.71104],[995846400000,4.71104],[995932800000,4.65632],[996019200000,4.67001],[996105600000,4.71296],[996192000000,4.69496],[996278400000,4.695],[996364800000,4.695],[996451200000,4.695],[996537600000,4.68485]], 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: [[993945600000, 4.641050],[993945600000, 4.641050],[994032000000, 4.641050],[994118400000, 4.641050],[994204800000, 4.641050],[994291200000, 4.548140],[994377600000, 4.535500],[994464000000, 4.510930],[994723200000, 4.549590],[994809600000, 4.594390],[994896000000, 4.628150],[994982400000, 4.586960],[995068800000, 4.586960],[995155200000, 4.586960],[995241600000, 4.586960],[995328000000, 4.608900],[995414400000, 4.572920],[995500800000, 4.638370],[995587200000, 4.684250],[995673600000, 4.711040],[995760000000, 4.711040],[995846400000, 4.711040],[995932800000, 4.656320],[996019200000, 4.670010],[996105600000, 4.712960],[996192000000, 4.694960],[996278400000, 4.695000],[996364800000, 4.695000],[996451200000, 4.695000],[996537600000, 4.684850]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });