$(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: [[1095120000000,7.78957],[1095206400000,7.7822],[1095292800000,7.7822],[1095379200000,7.76302],[1095465600000,7.777],[1095552000000,7.777],[1095638400000,7.777],[1095724800000,7.75365],[1095811200000,7.78891],[1095897600000,7.77937],[1095984000000,7.79683],[1096070400000,7.79314],[1096156800000,7.79314],[1096243200000,7.79314],[1096329600000,7.78136],[1096416000000,7.79075],[1096502400000,7.79432],[1096588800000,7.79683],[1096675200000,null],[1096761600000,null],[1096848000000,7.79683],[1096934400000,7.80956],[1097020800000,7.77403],[1097107200000,7.77224],[1097193600000,7.7721],[1097280000000,7.7721],[1097366400000,7.7721],[1097452800000,7.77195],[1097539200000,7.78819],[1097625600000,7.82192],[1097712000000,7.79016],[1097798400000,7.8156],[1097884800000,null],[1097971200000,7.82309],[1098057600000,7.82309],[1098144000000,7.84198],[1098230400000,7.85646],[1098316800000,7.87823],[1098403200000,7.90642],[1098489600000,7.9075],[1098576000000,7.9075],[1098662400000,7.9075],[1098748800000,7.96404],[1098835200000,7.95662],[1098921600000,7.95785],[1099008000000,7.92651],[1099094400000,7.95327],[1099180800000,7.95327],[1099267200000,7.95327],[1099353600000,7.94915],[1099440000000,7.93935],[1099526400000,7.94023],[1099612800000,null],[1099699200000,null],[1099785600000,null],[1099872000000,null],[1099958400000,null],[1100044800000,8.01499],[1100131200000,8.01499],[1100217600000,7.97411],[1100304000000,7.97396],[1100390400000,7.97396],[1100476800000,7.97396],[1100563200000,8.01131],[1100649600000,8.01748],[1100736000000,8.04529],[1100822400000,8.04729],[1100908800000,8.04971],[1100995200000,8.04971],[1101081600000,8.04971],[1101168000000,8.05786],[1101254400000,8.07089],[1101340800000,8.09745],[1101427200000,8.09745],[1101513600000,8.09745],[1101600000000,8.09745],[1101686400000,8.09745],[1101772800000,8.12727],[1101859200000,8.14982],[1101945600000,8.1586],[1102032000000,8.17208],[1102118400000,8.14809],[1102204800000,8.14809],[1102291200000,8.14809],[1102377600000,8.19934],[1102464000000,8.20588],[1102550400000,8.14951],[1102636800000,8.13152],[1102723200000,null],[1102809600000,null],[1102896000000,null],[1102982400000,8.11866],[1103068800000,8.14106],[1103155200000,8.16079],[1103241600000,8.17892],[1103328000000,8.13666],[1103414400000,8.13666],[1103500800000,8.13666],[1103587200000,8.16604],[1103673600000,8.16892],[1103760000000,8.14595],[1103846400000,8.17716],[1103932800000,8.17716],[1104019200000,8.17716],[1104105600000,8.17716],[1104192000000,8.20252],[1104278400000,8.234],[1104364800000,8.21832]], 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: [[1095206400000, 7.783094],[1095206400000, 7.783094],[1097798400000, 7.850605],[1100476800000, 8.028869],[1103068800000, 8.167026]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });