$(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: [[1075593600000,6.60203],[1075680000000,6.60203],[1075766400000,6.64308],[1075852800000,6.70919],[1075939200000,6.67667],[1076025600000,6.70812],[1076112000000,6.67921],[1076198400000,6.67921],[1076284800000,6.67921],[1076371200000,6.80423],[1076457600000,6.80423],[1076544000000,6.7592],[1076630400000,6.8317],[1076716800000,6.8317],[1076803200000,6.8317],[1076889600000,6.79172],[1076976000000,6.79172],[1077062400000,6.85396],[1077148800000,6.83558],[1077235200000,6.74938],[1077321600000,6.74938],[1077408000000,6.74938],[1077494400000,6.74938],[1077580800000,6.70301],[1077667200000,6.71351],[1077753600000,6.73164],[1077840000000,6.61867],[1077926400000,6.61867],[1078012800000,6.61867]], 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: [[1075593600000, 6.602030],[1075593600000, 6.602030],[1075680000000, 6.602030],[1075766400000, 6.643080],[1075852800000, 6.709190],[1075939200000, 6.676670],[1076025600000, 6.708120],[1076112000000, 6.679210],[1076198400000, 6.679210],[1076284800000, 6.679210],[1076371200000, 6.804230],[1076457600000, 6.804230],[1076544000000, 6.759200],[1076630400000, 6.831700],[1076716800000, 6.831700],[1076803200000, 6.831700],[1076889600000, 6.791720],[1076976000000, 6.791720],[1077062400000, 6.853960],[1077148800000, 6.835580],[1077235200000, 6.749380],[1077321600000, 6.749380],[1077408000000, 6.749380],[1077494400000, 6.749380],[1077580800000, 6.703010],[1077667200000, 6.713510],[1077753600000, 6.731640],[1077840000000, 6.618670],[1077926400000, 6.618670],[1078012800000, 6.618670]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });