$(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: 'Курс XDR, грн'}, 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: 'Курс XDR', data: [[1254355200000,12.6813],[1254441600000,12.6324],[1254528000000,12.6318],[1254614400000,12.6318],[1254700800000,12.6318],[1254787200000,12.6582],[1254873600000,12.705],[1254960000000,12.7047],[1255046400000,12.7428],[1255132800000,12.7185],[1255219200000,12.7185],[1255305600000,12.7185],[1255392000000,12.7185],[1255478400000,12.7161],[1255564800000,12.7488],[1255651200000,12.728],[1255737600000,12.6907],[1255824000000,12.6907],[1255910400000,12.6907],[1255996800000,12.7028],[1256083200000,12.7468],[1256169600000,12.7616],[1256256000000,12.7816],[1256342400000,12.7754],[1256428800000,12.7754],[1256515200000,12.7754],[1256601600000,12.7634],[1256688000000,12.731],[1256774400000,12.7089],[1256860800000,12.6978],[1256947200000,12.708]], 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: [[1254355200000, 12.681332],[1254355200000, 12.681332],[1254441600000, 12.632392],[1254528000000, 12.631818],[1254614400000, 12.631818],[1254700800000, 12.631818],[1254787200000, 12.658228],[1254873600000, 12.704989],[1254960000000, 12.704707],[1255046400000, 12.742846],[1255132800000, 12.718485],[1255219200000, 12.718485],[1255305600000, 12.718485],[1255392000000, 12.718485],[1255478400000, 12.716146],[1255564800000, 12.748763],[1255651200000, 12.727963],[1255737600000, 12.690658],[1255824000000, 12.690658],[1255910400000, 12.690658],[1255996800000, 12.702794],[1256083200000, 12.746830],[1256169600000, 12.761602],[1256256000000, 12.781598],[1256342400000, 12.775378],[1256428800000, 12.775378],[1256515200000, 12.775378],[1256601600000, 12.763364],[1256688000000, 12.731048],[1256774400000, 12.708883],[1256860800000, 12.697848],[1256947200000, 12.707997]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });