$(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: 'Курс USD, грн'}, 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: 'Курс USD', data: [[996624000000,5.3535],[996710400000,5.3542],[996796800000,5.3531],[996883200000,5.3516],[996969600000,5.3516],[997056000000,5.3516],[997142400000,5.3505],[997228800000,5.3503],[997315200000,5.3503],[997401600000,null],[997488000000,5.3501],[997574400000,5.3501],[997660800000,5.3501],[997747200000,5.3501],[997833600000,5.3501],[997920000000,5.3496],[998006400000,5.348],[998092800000,5.3468],[998179200000,5.3468],[998265600000,5.3468],[998352000000,5.3449],[998438400000,5.3436],[998524800000,5.3399],[998611200000,5.3395],[998697600000,5.3395],[998784000000,5.3395],[998870400000,5.3395],[998956800000,5.338],[999043200000,5.338],[999129600000,5.3385],[999216000000,5.3404]], 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: [[996624000000, 5.353500],[996624000000, 5.353500],[996710400000, 5.354200],[996796800000, 5.353100],[996883200000, 5.351600],[996969600000, 5.351600],[997056000000, 5.351600],[997142400000, 5.350500],[997228800000, 5.350300],[997315200000, 5.350300],[997488000000, 5.350100],[997574400000, 5.350100],[997660800000, 5.350100],[997747200000, 5.350100],[997833600000, 5.350100],[997920000000, 5.349600],[998006400000, 5.348000],[998092800000, 5.346800],[998179200000, 5.346800],[998265600000, 5.346800],[998352000000, 5.344900],[998438400000, 5.343600],[998524800000, 5.339900],[998611200000, 5.339500],[998697600000, 5.339500],[998784000000, 5.339500],[998870400000, 5.339500],[998956800000, 5.338000],[999043200000, 5.338000],[999129600000, 5.338500],[999216000000, 5.340400]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });