$(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: [[1396310400000,10.9981],[1396396800000,11.1062],[1396483200000,11.2416],[1396569600000,11.2232],[1396656000000,11.6011],[1396742400000,11.6011],[1396828800000,11.6011],[1396915200000,11.651],[1397001600000,11.7282],[1397088000000,11.8784],[1397174400000,12.6179],[1397260800000,12.5691],[1397347200000,12.5691],[1397433600000,12.5691],[1397520000000,12.9771],[1397606400000,12.3856],[1397692800000,11.3961],[1397779200000,11.2521],[1397865600000,11.2274],[1397952000000,11.2274],[1398038400000,11.2274],[1398124800000,11.2274],[1398211200000,11.2475],[1398297600000,11.5129],[1398384000000,11.3846],[1398470400000,11.3832],[1398556800000,11.3832],[1398643200000,11.3832],[1398729600000,11.3572],[1398816000000,11.4081]], 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: [[1396310400000, 10.998100],[1396310400000, 10.998100],[1396396800000, 11.106200],[1396483200000, 11.241600],[1396569600000, 11.223200],[1396656000000, 11.601102],[1396742400000, 11.601102],[1396828800000, 11.601102],[1396915200000, 11.650969],[1397001600000, 11.728167],[1397088000000, 11.878416],[1397174400000, 12.617898],[1397260800000, 12.569123],[1397347200000, 12.569123],[1397433600000, 12.569123],[1397520000000, 12.977090],[1397606400000, 12.385561],[1397692800000, 11.396110],[1397779200000, 11.252078],[1397865600000, 11.227373],[1397952000000, 11.227373],[1398038400000, 11.227373],[1398124800000, 11.227373],[1398211200000, 11.247453],[1398297600000, 11.512850],[1398384000000, 11.384637],[1398470400000, 11.383201],[1398556800000, 11.383201],[1398643200000, 11.383201],[1398729600000, 11.357246],[1398816000000, 11.408089]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });