$(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: 'Курс CAD, грн'}, 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: 'Курс CAD', data: [[1157068800000,4.56062],[1157155200000,4.57007],[1157241600000,4.57007],[1157328000000,4.57007],[1157414400000,4.5645],[1157500800000,4.54223],[1157587200000,4.54067],[1157673600000,4.57071],[1157760000000,4.53555],[1157846400000,4.53555],[1157932800000,4.53555],[1158019200000,4.50689],[1158105600000,4.51117],[1158192000000,4.4995],[1158278400000,4.5225],[1158364800000,4.50671],[1158451200000,4.50671],[1158537600000,4.50671],[1158624000000,4.5041],[1158710400000,4.49987],[1158796800000,4.4768],[1158883200000,4.49528],[1158969600000,4.53771],[1159056000000,4.53771],[1159142400000,4.53771],[1159228800000,4.52194],[1159315200000,4.53104],[1159401600000,4.52904],[1159488000000,4.54293],[1159574400000,4.52271]], 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, 4.560615],[1157068800000, 4.560615],[1157155200000, 4.570066],[1157241600000, 4.570066],[1157328000000, 4.570066],[1157414400000, 4.564498],[1157500800000, 4.542234],[1157587200000, 4.540670],[1157673600000, 4.570706],[1157760000000, 4.535546],[1157846400000, 4.535546],[1157932800000, 4.535546],[1158019200000, 4.506890],[1158105600000, 4.511172],[1158192000000, 4.499497],[1158278400000, 4.522499],[1158364800000, 4.506706],[1158451200000, 4.506706],[1158537600000, 4.506706],[1158624000000, 4.504102],[1158710400000, 4.499873],[1158796800000, 4.476803],[1158883200000, 4.495284],[1158969600000, 4.537707],[1159056000000, 4.537707],[1159142400000, 4.537707],[1159228800000, 4.521944],[1159315200000, 4.531045],[1159401600000, 4.529039],[1159488000000, 4.542927],[1159574400000, 4.522708]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });