$(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: [[1222819200000,3.40189],[1222905600000,3.38952],[1222992000000,3.37555],[1223078400000,3.35766],[1223164800000,3.35766],[1223251200000,3.35766],[1223337600000,3.32936],[1223424000000,3.3424],[1223510400000,3.36162],[1223596800000,3.35169],[1223683200000,3.32124],[1223769600000,3.32124],[1223856000000,3.32124],[1223942400000,3.34806],[1224028800000,3.37086],[1224115200000,3.34916],[1224201600000,3.35348],[1224288000000,3.35174],[1224374400000,3.35174],[1224460800000,3.35174],[1224547200000,3.37105],[1224633600000,3.38259],[1224720000000,3.39748],[1224806400000,3.42389],[1224892800000,3.45858],[1224979200000,3.45858],[1225065600000,3.45858],[1225152000000,3.5394],[1225238400000,3.65209],[1225324800000,3.84649],[1225411200000,3.92283]], 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: [[1222819200000, 3.401887],[1222819200000, 3.401887],[1222905600000, 3.389522],[1222992000000, 3.375552],[1223078400000, 3.357657],[1223164800000, 3.357657],[1223251200000, 3.357657],[1223337600000, 3.329360],[1223424000000, 3.342396],[1223510400000, 3.361615],[1223596800000, 3.351692],[1223683200000, 3.321239],[1223769600000, 3.321239],[1223856000000, 3.321239],[1223942400000, 3.348064],[1224028800000, 3.370857],[1224115200000, 3.349156],[1224201600000, 3.353476],[1224288000000, 3.351743],[1224374400000, 3.351743],[1224460800000, 3.351743],[1224547200000, 3.371045],[1224633600000, 3.382590],[1224720000000, 3.397478],[1224806400000, 3.423889],[1224892800000, 3.458583],[1224979200000, 3.458583],[1225065600000, 3.458583],[1225152000000, 3.539397],[1225238400000, 3.652089],[1225324800000, 3.846492],[1225411200000, 3.922826]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });