$(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: 'Курс SGD, грн'}, 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: 'Курс SGD', data: [[1470009600000,18.36],[1470096000000,18.4875],[1470182400000,18.5404],[1470268800000,18.5046],[1470355200000,18.4774],[1470441600000,18.5068],[1470528000000,18.5068],[1470614400000,18.5068],[1470700800000,18.4138],[1470787200000,18.4138],[1470873600000,18.5428],[1470960000000,18.4907],[1471046400000,18.601],[1471132800000,18.601],[1471219200000,18.601],[1471305600000,18.688],[1471392000000,18.7521],[1471478400000,18.6609],[1471564800000,18.7548],[1471651200000,18.7412],[1471737600000,18.7412],[1471824000000,18.7412],[1471910400000,18.7184],[1471996800000,18.7579],[1472083200000,18.7579],[1472169600000,18.7188],[1472256000000,18.8122],[1472342400000,18.8122],[1472428800000,18.8122],[1472515200000,18.7161],[1472601600000,18.8526]], 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: [[1470009600000, 18.359982],[1470009600000, 18.359982],[1470096000000, 18.487456],[1470182400000, 18.540358],[1470268800000, 18.504613],[1470355200000, 18.477386],[1470441600000, 18.506774],[1470528000000, 18.506774],[1470614400000, 18.506774],[1470700800000, 18.413767],[1470787200000, 18.413818],[1470873600000, 18.542807],[1470960000000, 18.490667],[1471046400000, 18.601022],[1471132800000, 18.601022],[1471219200000, 18.601022],[1471305600000, 18.688005],[1471392000000, 18.752131],[1471478400000, 18.660933],[1471564800000, 18.754763],[1471651200000, 18.741232],[1471737600000, 18.741232],[1471824000000, 18.741232],[1471910400000, 18.718373],[1471996800000, 18.757887],[1472083200000, 18.757887],[1472169600000, 18.718782],[1472256000000, 18.812248],[1472342400000, 18.812248],[1472428800000, 18.812248],[1472515200000, 18.716055],[1472601600000, 18.852608]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });