$(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: [[1177977600000,7.70496],[1178064000000,7.70496],[1178150400000,7.70496],[1178236800000,7.69116],[1178323200000,7.6781],[1178409600000,7.6781],[1178496000000,7.6781],[1178582400000,7.6781],[1178668800000,7.68189],[1178755200000,7.68189],[1178841600000,7.67317],[1178928000000,7.66182],[1179014400000,7.66182],[1179100800000,7.66182],[1179187200000,7.67355],[1179273600000,7.66595],[1179360000000,7.68332],[1179446400000,7.65962],[1179532800000,7.64937],[1179619200000,7.64937],[1179705600000,7.64937],[1179792000000,7.63901],[1179878400000,7.63987],[1179964800000,7.64426],[1180051200000,7.64533],[1180137600000,7.6418],[1180224000000,7.6418],[1180310400000,7.6418],[1180396800000,7.6418],[1180483200000,7.65516],[1180569600000,7.63557]], 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: [[1177977600000, 7.704960],[1177977600000, 7.704960],[1178064000000, 7.704960],[1178150400000, 7.704960],[1178236800000, 7.691160],[1178323200000, 7.678098],[1178409600000, 7.678098],[1178496000000, 7.678098],[1178582400000, 7.678098],[1178668800000, 7.681894],[1178755200000, 7.681894],[1178841600000, 7.673174],[1178928000000, 7.661824],[1179014400000, 7.661824],[1179100800000, 7.661824],[1179187200000, 7.673548],[1179273600000, 7.665953],[1179360000000, 7.683319],[1179446400000, 7.659616],[1179532800000, 7.649371],[1179619200000, 7.649371],[1179705600000, 7.649371],[1179792000000, 7.639015],[1179878400000, 7.639870],[1179964800000, 7.644265],[1180051200000, 7.645329],[1180137600000, 7.641801],[1180224000000, 7.641801],[1180310400000, 7.641801],[1180396800000, 7.641801],[1180483200000, 7.655157],[1180569600000, 7.635573]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });