$(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: 'Курс RUB, грн'}, 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: 'Курс RUB', data: [[996624000000,0.18259],[996710400000,0.18274],[996796800000,0.18251],[996883200000,0.18228],[996969600000,0.18228],[997056000000,0.18228],[997142400000,0.18236],[997228800000,0.18254],[997315200000,0.18254],[997401600000,null],[997488000000,0.18235],[997574400000,0.18235],[997660800000,0.18235],[997747200000,0.18253],[997833600000,0.18241],[997920000000,0.18233],[998006400000,0.18221],[998092800000,0.18211],[998179200000,0.18211],[998265600000,0.18211],[998352000000,0.18199],[998438400000,0.18206],[998524800000,0.18194],[998611200000,0.1818],[998697600000,0.1818],[998784000000,0.1818],[998870400000,0.1818],[998956800000,0.18187],[999043200000,0.18187],[999129600000,0.18183],[999216000000,0.18183]], 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, 0.182590],[996624000000, 0.182590],[996710400000, 0.182740],[996796800000, 0.182510],[996883200000, 0.182280],[996969600000, 0.182280],[997056000000, 0.182280],[997142400000, 0.182360],[997228800000, 0.182540],[997315200000, 0.182540],[997488000000, 0.182350],[997574400000, 0.182350],[997660800000, 0.182350],[997747200000, 0.182530],[997833600000, 0.182410],[997920000000, 0.182330],[998006400000, 0.182210],[998092800000, 0.182110],[998179200000, 0.182110],[998265600000, 0.182110],[998352000000, 0.181990],[998438400000, 0.182060],[998524800000, 0.181940],[998611200000, 0.181800],[998697600000, 0.181800],[998784000000, 0.181800],[998870400000, 0.181800],[998956800000, 0.181870],[999043200000, 0.181870],[999129600000, 0.181830],[999216000000, 0.181830]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });