$(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: [[1328054400000,0.26357],[1328140800000,0.26276],[1328227200000,0.26469],[1328313600000,0.26422],[1328400000000,0.26422],[1328486400000,0.26422],[1328572800000,0.26428],[1328659200000,0.26555],[1328745600000,0.26908],[1328832000000,0.26921],[1328918400000,0.26729],[1329004800000,0.26729],[1329091200000,0.26729],[1329177600000,0.26726],[1329264000000,0.2655],[1329350400000,0.26677],[1329436800000,0.2644],[1329523200000,0.26629],[1329609600000,0.26629],[1329696000000,0.26629],[1329782400000,0.26821],[1329868800000,0.26822],[1329955200000,0.2683],[1330041600000,0.2683],[1330128000000,0.27121],[1330214400000,0.27121],[1330300800000,0.27121],[1330387200000,0.27421],[1330473600000,0.27588]], 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: [[1328054400000, 0.263570],[1328054400000, 0.263570],[1328140800000, 0.262760],[1328227200000, 0.264690],[1328313600000, 0.264220],[1328400000000, 0.264220],[1328486400000, 0.264220],[1328572800000, 0.264280],[1328659200000, 0.265550],[1328745600000, 0.269080],[1328832000000, 0.269210],[1328918400000, 0.267290],[1329004800000, 0.267290],[1329091200000, 0.267290],[1329177600000, 0.267260],[1329264000000, 0.265500],[1329350400000, 0.266770],[1329436800000, 0.264400],[1329523200000, 0.266290],[1329609600000, 0.266290],[1329696000000, 0.266290],[1329782400000, 0.268210],[1329868800000, 0.268220],[1329955200000, 0.268300],[1330041600000, 0.268300],[1330128000000, 0.271210],[1330214400000, 0.271210],[1330300800000, 0.271210],[1330387200000, 0.274210],[1330473600000, 0.275880]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });