$(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: [[1157068800000,3.21211],[1157155200000,3.21268],[1157241600000,3.21268],[1157328000000,3.21268],[1157414400000,3.22033],[1157500800000,3.22132],[1157587200000,3.21977],[1157673600000,3.2186],[1157760000000,3.21341],[1157846400000,3.21341],[1157932800000,3.21341],[1158019200000,3.20683],[1158105600000,3.19815],[1158192000000,3.2027],[1158278400000,3.2004],[1158364800000,3.19309],[1158451200000,3.19309],[1158537600000,3.19309],[1158624000000,3.17821],[1158710400000,3.18256],[1158796800000,3.18413],[1158883200000,3.19445],[1158969600000,3.19082],[1159056000000,3.19082],[1159142400000,3.19082],[1159228800000,3.18648],[1159315200000,3.1802],[1159401600000,3.17792],[1159488000000,3.18187],[1159574400000,3.18455]], 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: [[1157068800000, 3.212114],[1157068800000, 3.212114],[1157155200000, 3.212679],[1157241600000, 3.212679],[1157328000000, 3.212679],[1157414400000, 3.220333],[1157500800000, 3.221318],[1157587200000, 3.219768],[1157673600000, 3.218601],[1157760000000, 3.213407],[1157846400000, 3.213407],[1157932800000, 3.213407],[1158019200000, 3.206826],[1158105600000, 3.198149],[1158192000000, 3.202704],[1158278400000, 3.200396],[1158364800000, 3.193093],[1158451200000, 3.193093],[1158537600000, 3.193093],[1158624000000, 3.178208],[1158710400000, 3.182564],[1158796800000, 3.184133],[1158883200000, 3.194452],[1158969600000, 3.190823],[1159056000000, 3.190823],[1159142400000, 3.190823],[1159228800000, 3.186479],[1159315200000, 3.180205],[1159401600000, 3.177922],[1159488000000, 3.181873],[1159574400000, 3.184549]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });