$(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: [[1149120000000,3.20368],[1149206400000,3.184],[1149292800000,3.19805],[1149379200000,3.19805],[1149465600000,3.19805],[1149552000000,3.20727],[1149638400000,3.20018],[1149724800000,3.18637],[1149811200000,3.16432],[1149897600000,3.16742],[1149984000000,3.16742],[1150070400000,3.16742],[1150156800000,3.16742],[1150243200000,3.16374],[1150329600000,3.16662],[1150416000000,3.17561],[1150502400000,3.17833],[1150588800000,3.17833],[1150675200000,3.17833],[1150761600000,3.16121],[1150848000000,3.16882],[1150934400000,3.17182],[1151020800000,3.17061],[1151107200000,3.15754],[1151193600000,3.15754],[1151280000000,3.15754],[1151366400000,3.16059],[1151452800000,3.16179],[1151539200000,3.16179],[1151625600000,3.15868]], 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: [[1149120000000, 3.203678],[1149120000000, 3.203678],[1149206400000, 3.184000],[1149292800000, 3.198051],[1149379200000, 3.198051],[1149465600000, 3.198051],[1149552000000, 3.207269],[1149638400000, 3.200185],[1149724800000, 3.186366],[1149811200000, 3.164325],[1149897600000, 3.167416],[1149984000000, 3.167416],[1150070400000, 3.167416],[1150156800000, 3.167416],[1150243200000, 3.163737],[1150329600000, 3.166616],[1150416000000, 3.175610],[1150502400000, 3.178327],[1150588800000, 3.178327],[1150675200000, 3.178327],[1150761600000, 3.161209],[1150848000000, 3.168816],[1150934400000, 3.171818],[1151020800000, 3.170614],[1151107200000, 3.157544],[1151193600000, 3.157544],[1151280000000, 3.157544],[1151366400000, 3.160590],[1151452800000, 3.161785],[1151539200000, 3.161785],[1151625600000, 3.158677]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });