$(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: 'Курс NOK, грн'}, 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: 'Курс NOK', data: [[1264982400000,1.36037],[1265068800000,1.35783],[1265155200000,1.36921],[1265241600000,1.37018],[1265328000000,1.35626],[1265414400000,1.33261],[1265500800000,1.33261],[1265587200000,1.33261],[1265673600000,1.3402],[1265760000000,1.35191],[1265846400000,1.35689],[1265932800000,1.35698],[1266019200000,1.34702],[1266105600000,1.34702],[1266192000000,1.34702],[1266278400000,1.35208],[1266364800000,1.35649],[1266451200000,1.37198],[1266537600000,1.34522],[1266624000000,1.33397],[1266710400000,1.33397],[1266796800000,1.33397],[1266883200000,1.35502],[1266969600000,1.35245],[1267056000000,1.34812],[1267142400000,1.34043],[1267228800000,1.34797],[1267315200000,1.34797]], 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: [[1264982400000, 1.360375],[1264982400000, 1.360375],[1265068800000, 1.357827],[1265155200000, 1.369209],[1265241600000, 1.370179],[1265328000000, 1.356257],[1265414400000, 1.332605],[1265500800000, 1.332605],[1265587200000, 1.332605],[1265673600000, 1.340202],[1265760000000, 1.351913],[1265846400000, 1.356891],[1265932800000, 1.356977],[1266019200000, 1.347016],[1266105600000, 1.347016],[1266192000000, 1.347016],[1266278400000, 1.352083],[1266364800000, 1.356492],[1266451200000, 1.371983],[1266537600000, 1.345215],[1266624000000, 1.333970],[1266710400000, 1.333970],[1266796800000, 1.333970],[1266883200000, 1.355020],[1266969600000, 1.352453],[1267056000000, 1.348120],[1267142400000, 1.340428],[1267228800000, 1.347974],[1267315200000, 1.347974]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });