$(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: 'Курс TRY, грн'}, 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: 'Курс TRY', data: [[1177977600000,3.77705],[1178064000000,3.77705],[1178150400000,3.77705],[1178236800000,3.72605],[1178323200000,3.73001],[1178409600000,3.73001],[1178496000000,3.73001],[1178582400000,3.77157],[1178668800000,3.76404],[1178755200000,3.76404],[1178841600000,3.76475],[1178928000000,3.7552],[1179014400000,3.7552],[1179100800000,3.7552],[1179187200000,3.78234],[1179273600000,3.77718],[1179360000000,3.81462],[1179446400000,3.81829],[1179532800000,3.79264],[1179619200000,3.79264],[1179705600000,3.79264],[1179792000000,3.81846],[1179878400000,3.82668],[1179964800000,3.81415],[1180051200000,3.79081],[1180137600000,3.79519],[1180224000000,3.79519],[1180310400000,3.79519],[1180396800000,3.79519],[1180483200000,3.81568],[1180569600000,3.78715]], 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, 3.777049],[1177977600000, 3.777049],[1178064000000, 3.777049],[1178150400000, 3.777049],[1178236800000, 3.726051],[1178323200000, 3.730014],[1178409600000, 3.730014],[1178496000000, 3.730014],[1178582400000, 3.771572],[1178668800000, 3.764041],[1178755200000, 3.764041],[1178841600000, 3.764748],[1178928000000, 3.755200],[1179014400000, 3.755200],[1179100800000, 3.755200],[1179187200000, 3.782336],[1179273600000, 3.777177],[1179360000000, 3.814619],[1179446400000, 3.818293],[1179532800000, 3.792636],[1179619200000, 3.792636],[1179705600000, 3.792636],[1179792000000, 3.818459],[1179878400000, 3.826680],[1179964800000, 3.814148],[1180051200000, 3.790812],[1180137600000, 3.795194],[1180224000000, 3.795194],[1180310400000, 3.795194],[1180396800000, 3.795194],[1180483200000, 3.815675],[1180569600000, 3.787147]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });