$(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: 'Курс EUR, грн'}, 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: 'Курс EUR', data: [[1346457600000,10.08],[1346544000000,10.08],[1346630400000,10.08],[1346716800000,10.0456],[1346803200000,10.0544],[1346889600000,10.0536],[1346976000000,10.1016],[1347062400000,10.1559],[1347148800000,10.1559],[1347235200000,10.1559],[1347321600000,10.2119],[1347408000000,10.2206],[1347494400000,10.3078],[1347580800000,10.319],[1347667200000,10.4668],[1347753600000,10.4668],[1347840000000,10.4668],[1347926400000,10.4596],[1348012800000,10.4341],[1348099200000,10.3925],[1348185600000,10.3541],[1348272000000,10.3813],[1348358400000,10.3813],[1348444800000,10.3813],[1348531200000,10.3238],[1348617600000,10.3365],[1348704000000,10.267],[1348790400000,10.2902],[1348876800000,10.3349],[1348963200000,10.3349]], 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: [[1346457600000, 10.079972],[1346457600000, 10.079972],[1346544000000, 10.079972],[1346630400000, 10.079972],[1346716800000, 10.045602],[1346803200000, 10.054395],[1346889600000, 10.053595],[1346976000000, 10.101553],[1347062400000, 10.155906],[1347148800000, 10.155906],[1347235200000, 10.155906],[1347321600000, 10.211857],[1347408000000, 10.220649],[1347494400000, 10.307773],[1347580800000, 10.318963],[1347667200000, 10.466834],[1347753600000, 10.466834],[1347840000000, 10.466834],[1347926400000, 10.459640],[1348012800000, 10.434062],[1348099200000, 10.392499],[1348185600000, 10.354132],[1348272000000, 10.381308],[1348358400000, 10.381308],[1348444800000, 10.381308],[1348531200000, 10.323759],[1348617600000, 10.336548],[1348704000000, 10.267009],[1348790400000, 10.290188],[1348876800000, 10.334949],[1348963200000, 10.334949]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });