$(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: 'Курс XDR, грн'}, 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: 'Курс XDR', data: [[1149120000000,7.54561],[1149206400000,7.50545],[1149292800000,7.51902],[1149379200000,7.51902],[1149465600000,7.51902],[1149552000000,7.56533],[1149638400000,7.53666],[1149724800000,7.51366],[1149811200000,7.4936],[1149897600000,7.467],[1149984000000,7.467],[1150070400000,7.467],[1150156800000,7.467],[1150243200000,7.44717],[1150329600000,7.44243],[1150416000000,7.45506],[1150502400000,7.46567],[1150588800000,7.46567],[1150675200000,7.46567],[1150761600000,7.44202],[1150848000000,7.4386],[1150934400000,7.45415],[1151020800000,7.43888],[1151107200000,7.41894],[1151193600000,7.41894],[1151280000000,7.41894],[1151366400000,7.4245],[1151452800000,7.42242],[1151539200000,7.42242],[1151625600000,7.4096]], 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, 7.545614],[1149120000000, 7.545614],[1149206400000, 7.505454],[1149292800000, 7.519021],[1149379200000, 7.519021],[1149465600000, 7.519021],[1149552000000, 7.565328],[1149638400000, 7.536661],[1149724800000, 7.513662],[1149811200000, 7.493604],[1149897600000, 7.467001],[1149984000000, 7.467001],[1150070400000, 7.467001],[1150156800000, 7.467001],[1150243200000, 7.447169],[1150329600000, 7.442428],[1150416000000, 7.455063],[1150502400000, 7.465665],[1150588800000, 7.465665],[1150675200000, 7.465665],[1150761600000, 7.442022],[1150848000000, 7.438602],[1150934400000, 7.454150],[1151020800000, 7.438876],[1151107200000, 7.418943],[1151193600000, 7.418943],[1151280000000, 7.418943],[1151366400000, 7.424505],[1151452800000, 7.422421],[1151539200000, 7.422421],[1151625600000, 7.409603]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });