$(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: [[1470009600000,24.8065],[1470096000000,24.7835],[1470182400000,24.8232],[1470268800000,24.816],[1470355200000,24.8091],[1470441600000,24.8056],[1470528000000,24.8056],[1470614400000,24.8056],[1470700800000,24.8196],[1470787200000,24.8183],[1470873600000,24.8166],[1470960000000,24.8504],[1471046400000,25.0442],[1471132800000,25.0442],[1471219200000,25.0442],[1471305600000,25.1151],[1471392000000,25.0593],[1471478400000,25.0887],[1471564800000,25.1709],[1471651200000,25.2624],[1471737600000,25.2624],[1471824000000,25.2624],[1471910400000,25.2912],[1471996800000,25.3055],[1472083200000,25.3055],[1472169600000,25.3292],[1472256000000,25.4424],[1472342400000,25.4424],[1472428800000,25.4424],[1472515200000,25.4887],[1472601600000,25.6522]], 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, 24.806544],[1470009600000, 24.806544],[1470096000000, 24.783525],[1470182400000, 24.823176],[1470268800000, 24.816008],[1470355200000, 24.809076],[1470441600000, 24.805647],[1470528000000, 24.805647],[1470614400000, 24.805647],[1470700800000, 24.819639],[1470787200000, 24.818263],[1470873600000, 24.816590],[1470960000000, 24.850409],[1471046400000, 25.044197],[1471132800000, 25.044197],[1471219200000, 25.044197],[1471305600000, 25.115141],[1471392000000, 25.059288],[1471478400000, 25.088661],[1471564800000, 25.170910],[1471651200000, 25.262440],[1471737600000, 25.262440],[1471824000000, 25.262440],[1471910400000, 25.291161],[1471996800000, 25.305530],[1472083200000, 25.305530],[1472169600000, 25.329215],[1472256000000, 25.442357],[1472342400000, 25.442357],[1472428800000, 25.442357],[1472515200000, 25.488686],[1472601600000, 25.652241]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });