$(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: [[1095120000000,3.12551],[1095206400000,3.14378],[1095292800000,3.14378],[1095379200000,3.14258],[1095465600000,3.13771],[1095552000000,3.13771],[1095638400000,3.13771],[1095724800000,3.14223],[1095811200000,3.14125],[1095897600000,3.13628],[1095984000000,3.13242],[1096070400000,3.13956],[1096156800000,3.13956],[1096243200000,3.13956],[1096329600000,3.13315],[1096416000000,3.13127],[1096502400000,3.13491],[1096588800000,3.14572],[1096675200000,null],[1096761600000,null],[1096848000000,3.1511],[1096934400000,3.14923],[1097020800000,3.1477],[1097107200000,3.13808],[1097193600000,3.14227],[1097280000000,3.14227],[1097366400000,3.14227],[1097452800000,3.14685],[1097539200000,3.15771],[1097625600000,3.14866],[1097712000000,3.14543],[1097798400000,3.15574],[1097884800000,null],[1097971200000,3.15898],[1098057600000,3.15898],[1098144000000,3.1607],[1098230400000,3.1679],[1098316800000,3.17162],[1098403200000,3.17318],[1098489600000,3.18087],[1098576000000,3.18087],[1098662400000,3.18087],[1098748800000,3.19034],[1098835200000,3.18789],[1098921600000,3.19289],[1099008000000,3.18902],[1099094400000,3.18981],[1099180800000,3.18981],[1099267200000,3.18981],[1099353600000,3.18295],[1099440000000,3.18225],[1099526400000,3.1819],[1099612800000,null],[1099699200000,null],[1099785600000,null],[1099872000000,null],[1099958400000,null],[1100044800000,3.20726],[1100131200000,3.20726],[1100217600000,3.20037],[1100304000000,3.20845],[1100390400000,3.20845],[1100476800000,3.20845],[1100563200000,3.21449],[1100649600000,3.2153],[1100736000000,3.22111],[1100822400000,3.21657],[1100908800000,3.22083],[1100995200000,3.22083],[1101081600000,3.22083],[1101168000000,3.22615],[1101254400000,3.23082],[1101340800000,3.23271],[1101427200000,3.23464],[1101513600000,3.233],[1101600000000,3.233],[1101686400000,3.233],[1101772800000,3.24072],[1101859200000,3.24021],[1101945600000,3.2434],[1102032000000,3.24499],[1102118400000,3.23727],[1102204800000,3.23727],[1102291200000,3.23727],[1102377600000,3.24704],[1102464000000,3.2465],[1102550400000,3.22228],[1102636800000,3.21498],[1102723200000,null],[1102809600000,null],[1102896000000,null],[1102982400000,3.21917],[1103068800000,3.22707],[1103155200000,3.2345],[1103241600000,3.23605],[1103328000000,3.22197],[1103414400000,3.22197],[1103500800000,3.22197],[1103587200000,3.22729],[1103673600000,3.23277],[1103760000000,3.23668],[1103846400000,3.23815],[1103932800000,3.2361],[1104019200000,3.2361],[1104105600000,3.2361],[1104192000000,3.23499],[1104278400000,3.24775],[1104364800000,3.23427]], 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, 3.137586],[1095206400000, 3.137586],[1097798400000, 3.163813],[1100476800000, 3.214845],[1103068800000, 3.234029]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });