$(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: 'Курс RUB, грн'}, 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: 'Курс RUB', data: [[1254355200000,0.26672],[1254441600000,0.26642],[1254528000000,0.2659],[1254614400000,0.2659],[1254700800000,0.2659],[1254787200000,0.2663],[1254873600000,0.2685],[1254960000000,0.26896],[1255046400000,0.27025],[1255132800000,0.27053],[1255219200000,0.27053],[1255305600000,0.27053],[1255392000000,0.27066],[1255478400000,0.27136],[1255564800000,0.27144],[1255651200000,0.27216],[1255737600000,0.27175],[1255824000000,0.27175],[1255910400000,0.27175],[1255996800000,0.2715],[1256083200000,0.27337],[1256169600000,0.27407],[1256256000000,0.27522],[1256342400000,0.27579],[1256428800000,0.27579],[1256515200000,0.27579],[1256601600000,0.27639],[1256688000000,0.27595],[1256774400000,0.27447],[1256860800000,0.27263],[1256947200000,0.27516]], 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.266720],[1254355200000, 0.266720],[1254441600000, 0.266420],[1254528000000, 0.265900],[1254614400000, 0.265900],[1254700800000, 0.265900],[1254787200000, 0.266300],[1254873600000, 0.268500],[1254960000000, 0.268960],[1255046400000, 0.270250],[1255132800000, 0.270530],[1255219200000, 0.270530],[1255305600000, 0.270530],[1255392000000, 0.270660],[1255478400000, 0.271360],[1255564800000, 0.271440],[1255651200000, 0.272160],[1255737600000, 0.271750],[1255824000000, 0.271750],[1255910400000, 0.271750],[1255996800000, 0.271500],[1256083200000, 0.273370],[1256169600000, 0.274070],[1256256000000, 0.275220],[1256342400000, 0.275790],[1256428800000, 0.275790],[1256515200000, 0.275790],[1256601600000, 0.276390],[1256688000000, 0.275950],[1256774400000, 0.274470],[1256860800000, 0.272630],[1256947200000, 0.275160]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });