$(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: 'Курс RUB, грн'}, 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: 'Курс RUB', data: [[1177977600000,0.19616],[1178064000000,0.19616],[1178150400000,0.19616],[1178236800000,0.19628],[1178323200000,0.19597],[1178409600000,0.19597],[1178496000000,0.19597],[1178582400000,0.19623],[1178668800000,0.19624],[1178755200000,0.19624],[1178841600000,0.19591],[1178928000000,0.19529],[1179014400000,0.19529],[1179100800000,0.19529],[1179187200000,0.19569],[1179273600000,0.19579],[1179360000000,0.19621],[1179446400000,0.19568],[1179532800000,0.19536],[1179619200000,0.19536],[1179705600000,0.19536],[1179792000000,0.19544],[1179878400000,0.19511],[1179964800000,0.19501],[1180051200000,0.19498],[1180137600000,0.19487],[1180224000000,0.19487],[1180310400000,0.19487],[1180396800000,0.19487],[1180483200000,0.19496],[1180569600000,0.19496]], 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, 0.196160],[1177977600000, 0.196160],[1178064000000, 0.196160],[1178150400000, 0.196160],[1178236800000, 0.196280],[1178323200000, 0.195970],[1178409600000, 0.195970],[1178496000000, 0.195970],[1178582400000, 0.196230],[1178668800000, 0.196240],[1178755200000, 0.196240],[1178841600000, 0.195910],[1178928000000, 0.195290],[1179014400000, 0.195290],[1179100800000, 0.195290],[1179187200000, 0.195690],[1179273600000, 0.195790],[1179360000000, 0.196210],[1179446400000, 0.195680],[1179532800000, 0.195360],[1179619200000, 0.195360],[1179705600000, 0.195360],[1179792000000, 0.195440],[1179878400000, 0.195110],[1179964800000, 0.195010],[1180051200000, 0.194980],[1180137600000, 0.194870],[1180224000000, 0.194870],[1180310400000, 0.194870],[1180396800000, 0.194870],[1180483200000, 0.194960],[1180569600000, 0.194960]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });