$(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: [[1298937600000,6.24324],[1299024000000,6.24833],[1299110400000,6.2462],[1299196800000,6.25369],[1299283200000,6.26132],[1299369600000,6.26132],[1299456000000,6.26132],[1299542400000,6.26132],[1299628800000,6.26132],[1299715200000,6.26424],[1299801600000,6.24156],[1299888000000,6.23091],[1299974400000,6.23091],[1300060800000,6.23091],[1300147200000,6.25587],[1300233600000,6.17847],[1300320000000,6.20627],[1300406400000,6.20725],[1300492800000,6.23479],[1300579200000,6.23479],[1300665600000,6.23479],[1300752000000,6.27732],[1300838400000,6.29219],[1300924800000,6.28445],[1301011200000,6.30546],[1301097600000,6.31529],[1301184000000,6.31529],[1301270400000,6.31529],[1301356800000,6.30296],[1301443200000,6.30329],[1301529600000,6.3073]], 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: [[1298937600000, 6.243240],[1298937600000, 6.243240],[1299024000000, 6.248330],[1299110400000, 6.246198],[1299196800000, 6.253695],[1299283200000, 6.261318],[1299369600000, 6.261318],[1299456000000, 6.261318],[1299542400000, 6.261318],[1299628800000, 6.261318],[1299715200000, 6.264245],[1299801600000, 6.241562],[1299888000000, 6.230908],[1299974400000, 6.230908],[1300060800000, 6.230908],[1300147200000, 6.255866],[1300233600000, 6.178473],[1300320000000, 6.206269],[1300406400000, 6.207252],[1300492800000, 6.234788],[1300579200000, 6.234788],[1300665600000, 6.234788],[1300752000000, 6.277316],[1300838400000, 6.292187],[1300924800000, 6.284450],[1301011200000, 6.305462],[1301097600000, 6.315294],[1301184000000, 6.315294],[1301270400000, 6.315294],[1301356800000, 6.302958],[1301443200000, 6.303291],[1301529600000, 6.307300]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });