$(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: 'Курс SGD, грн'}, 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: 'Курс SGD', data: [[1275350400000,5.66236],[1275436800000,5.60284],[1275523200000,5.62014],[1275609600000,5.64522],[1275696000000,5.62112],[1275782400000,5.62112],[1275868800000,5.62112],[1275955200000,5.59028],[1276041600000,5.59209],[1276128000000,5.60478],[1276214400000,5.612],[1276300800000,5.64709],[1276387200000,5.64709],[1276473600000,5.64709],[1276560000000,5.67123],[1276646400000,5.66992],[1276732800000,5.6675],[1276819200000,5.68562],[1276905600000,5.70099],[1276992000000,5.70099],[1277078400000,5.70099],[1277164800000,5.75108],[1277251200000,5.72238],[1277337600000,5.68807],[1277424000000,5.67629],[1277510400000,5.68069],[1277596800000,5.68069],[1277683200000,5.68069],[1277769600000,5.68069],[1277856000000,5.64858]], 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: [[1275350400000, 5.662363],[1275350400000, 5.662363],[1275436800000, 5.602838],[1275523200000, 5.620138],[1275609600000, 5.645217],[1275696000000, 5.621117],[1275782400000, 5.621117],[1275868800000, 5.621117],[1275955200000, 5.590277],[1276041600000, 5.592093],[1276128000000, 5.604785],[1276214400000, 5.611997],[1276300800000, 5.647091],[1276387200000, 5.647091],[1276473600000, 5.647091],[1276560000000, 5.671226],[1276646400000, 5.669916],[1276732800000, 5.667503],[1276819200000, 5.685615],[1276905600000, 5.700992],[1276992000000, 5.700992],[1277078400000, 5.700992],[1277164800000, 5.751084],[1277251200000, 5.722377],[1277337600000, 5.688066],[1277424000000, 5.676288],[1277510400000, 5.680686],[1277596800000, 5.680686],[1277683200000, 5.680686],[1277769600000, 5.680686],[1277856000000, 5.648585]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });