$(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: [[996624000000,7.62981],[996710400000,7.66861],[996796800000,7.6555],[996883200000,7.64539],[996969600000,7.64539],[997056000000,7.64539],[997142400000,7.61085],[997228800000,7.57247],[997315200000,7.57793],[997401600000,null],[997488000000,7.62617],[997574400000,7.62617],[997660800000,7.62617],[997747200000,7.62084],[997833600000,7.60135],[997920000000,7.68541],[998006400000,7.72789],[998092800000,7.72231],[998179200000,7.72231],[998265600000,7.72231],[998352000000,7.7252],[998438400000,7.73737],[998524800000,7.77941],[998611200000,7.71543],[998697600000,7.71543],[998784000000,7.71543],[998870400000,7.71543],[998956800000,7.69342],[999043200000,7.69342],[999129600000,7.76803],[999216000000,7.76266]], 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, 7.629810],[996624000000, 7.629810],[996710400000, 7.668610],[996796800000, 7.655500],[996883200000, 7.645390],[996969600000, 7.645390],[997056000000, 7.645390],[997142400000, 7.610850],[997228800000, 7.572470],[997315200000, 7.577930],[997488000000, 7.626170],[997574400000, 7.626170],[997660800000, 7.626170],[997747200000, 7.620840],[997833600000, 7.601350],[997920000000, 7.685410],[998006400000, 7.727890],[998092800000, 7.722310],[998179200000, 7.722310],[998265600000, 7.722310],[998352000000, 7.725200],[998438400000, 7.737370],[998524800000, 7.779410],[998611200000, 7.715430],[998697600000, 7.715430],[998784000000, 7.715430],[998870400000, 7.715430],[998956800000, 7.693420],[999043200000, 7.693420],[999129600000, 7.768030],[999216000000, 7.762660]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });