$(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: 'Курс JPY, грн'}, 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: 'Курс JPY', data: [[1254355200000,0.0894198],[1254441600000,0.0890372],[1254528000000,0.0896047],[1254614400000,0.0896047],[1254700800000,0.0896047],[1254787200000,0.0890908],[1254873600000,0.0898737],[1254960000000,0.0900665],[1255046400000,0.0906421],[1255132800000,0.0901064],[1255219200000,0.0901064],[1255305600000,0.0901064],[1255392000000,0.0889297],[1255478400000,0.0894634],[1255564800000,0.0892258],[1255651200000,0.0884722],[1255737600000,0.0873938],[1255824000000,0.0873938],[1255910400000,0.0873938],[1255996800000,0.087643],[1256083200000,0.0881492],[1256169600000,0.08781],[1256256000000,0.08771],[1256342400000,0.0870696],[1256428800000,0.0870696],[1256515200000,0.0870696],[1256601600000,0.0869969],[1256688000000,0.0869951],[1256774400000,0.0878542],[1256860800000,0.0875483],[1256947200000,0.0878482]], 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, 0.089420],[1254355200000, 0.089420],[1254441600000, 0.089037],[1254528000000, 0.089605],[1254614400000, 0.089605],[1254700800000, 0.089605],[1254787200000, 0.089091],[1254873600000, 0.089874],[1254960000000, 0.090066],[1255046400000, 0.090642],[1255132800000, 0.090106],[1255219200000, 0.090106],[1255305600000, 0.090106],[1255392000000, 0.088930],[1255478400000, 0.089463],[1255564800000, 0.089226],[1255651200000, 0.088472],[1255737600000, 0.087394],[1255824000000, 0.087394],[1255910400000, 0.087394],[1255996800000, 0.087643],[1256083200000, 0.088149],[1256169600000, 0.087810],[1256256000000, 0.087710],[1256342400000, 0.087070],[1256428800000, 0.087070],[1256515200000, 0.087070],[1256601600000, 0.086997],[1256688000000, 0.086995],[1256774400000, 0.087854],[1256860800000, 0.087548],[1256947200000, 0.087848]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });