$(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: [[993945600000,7.61952],[994032000000,7.61952],[994118400000,7.61952],[994204800000,7.61952],[994291200000,7.54752],[994377600000,7.57179],[994464000000,7.52323],[994550400000,null],[994636800000,null],[994723200000,7.565],[994809600000,7.59152],[994896000000,7.6146],[994982400000,7.55552],[995068800000,7.55552],[995155200000,7.55552],[995241600000,7.55552],[995328000000,7.52351],[995414400000,7.51137],[995500800000,7.57037],[995587200000,7.61667],[995673600000,7.7003],[995760000000,7.7003],[995846400000,7.7003],[995932800000,7.63707],[996019200000,7.60712],[996105600000,7.65464],[996192000000,7.63905],[996278400000,7.64534],[996364800000,7.64534],[996451200000,7.64534],[996537600000,7.63502]], 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, 7.619520],[993945600000, 7.619520],[994032000000, 7.619520],[994118400000, 7.619520],[994204800000, 7.619520],[994291200000, 7.547520],[994377600000, 7.571790],[994464000000, 7.523230],[994723200000, 7.565000],[994809600000, 7.591520],[994896000000, 7.614600],[994982400000, 7.555520],[995068800000, 7.555520],[995155200000, 7.555520],[995241600000, 7.555520],[995328000000, 7.523510],[995414400000, 7.511370],[995500800000, 7.570370],[995587200000, 7.616670],[995673600000, 7.700300],[995760000000, 7.700300],[995846400000, 7.700300],[995932800000, 7.637070],[996019200000, 7.607120],[996105600000, 7.654640],[996192000000, 7.639050],[996278400000, 7.645340],[996364800000, 7.645340],[996451200000, 7.645340],[996537600000, 7.635020]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });