$(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: [[1283299200000,0.25551],[1283385600000,0.25604],[1283472000000,0.25738],[1283558400000,0.25766],[1283644800000,0.25766],[1283731200000,0.25766],[1283817600000,0.25863],[1283904000000,0.25733],[1283990400000,0.25603],[1284076800000,0.25609],[1284163200000,0.25598],[1284249600000,0.25598],[1284336000000,0.25598],[1284422400000,0.25774],[1284508800000,0.25788],[1284595200000,0.25761],[1284681600000,0.25527],[1284768000000,0.25478],[1284854400000,0.25478],[1284940800000,0.25478],[1285027200000,0.25562],[1285113600000,0.25479],[1285200000000,0.2556],[1285286400000,0.25534],[1285372800000,0.25557],[1285459200000,0.25557],[1285545600000,0.25557],[1285632000000,0.25851],[1285718400000,0.2586],[1285804800000,0.26029]], 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: [[1283299200000, 0.255510],[1283299200000, 0.255510],[1283385600000, 0.256040],[1283472000000, 0.257380],[1283558400000, 0.257660],[1283644800000, 0.257660],[1283731200000, 0.257660],[1283817600000, 0.258630],[1283904000000, 0.257330],[1283990400000, 0.256030],[1284076800000, 0.256090],[1284163200000, 0.255980],[1284249600000, 0.255980],[1284336000000, 0.255980],[1284422400000, 0.257740],[1284508800000, 0.257880],[1284595200000, 0.257610],[1284681600000, 0.255270],[1284768000000, 0.254780],[1284854400000, 0.254780],[1284940800000, 0.254780],[1285027200000, 0.255620],[1285113600000, 0.254790],[1285200000000, 0.255600],[1285286400000, 0.255340],[1285372800000, 0.255570],[1285459200000, 0.255570],[1285545600000, 0.255570],[1285632000000, 0.258510],[1285718400000, 0.258600],[1285804800000, 0.260290]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });