$(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: 'Курс LTL, грн'}, 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: 'Курс LTL', data: [[1177977600000,1.9954],[1178064000000,1.9954],[1178150400000,1.9954],[1178236800000,1.99101],[1178323200000,1.98341],[1178409600000,1.98341],[1178496000000,1.98341],[1178582400000,1.9913],[1178668800000,1.98297],[1178755200000,1.98297],[1178841600000,1.97843],[1178928000000,1.97244],[1179014400000,1.97244],[1179100800000,1.97244],[1179187200000,1.98165],[1179273600000,1.98004],[1179360000000,1.98531],[1179446400000,1.97683],[1179532800000,1.97112],[1179619200000,1.97112],[1179705600000,1.97112],[1179792000000,1.96629],[1179878400000,1.96776],[1179964800000,1.97302],[1180051200000,1.96688],[1180137600000,1.96585],[1180224000000,1.96585],[1180310400000,1.96585],[1180396800000,1.96585],[1180483200000,1.9758],[1180569600000,1.96278]], 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, 1.995399],[1177977600000, 1.995399],[1178064000000, 1.995399],[1178150400000, 1.995399],[1178236800000, 1.991012],[1178323200000, 1.983406],[1178409600000, 1.983406],[1178496000000, 1.983406],[1178582400000, 1.991304],[1178668800000, 1.982967],[1178755200000, 1.982967],[1178841600000, 1.978433],[1178928000000, 1.972437],[1179014400000, 1.972437],[1179100800000, 1.972437],[1179187200000, 1.981651],[1179273600000, 1.980042],[1179360000000, 1.985308],[1179446400000, 1.976825],[1179532800000, 1.971121],[1179619200000, 1.971121],[1179705600000, 1.971121],[1179792000000, 1.966294],[1179878400000, 1.967757],[1179964800000, 1.973022],[1180051200000, 1.966879],[1180137600000, 1.965855],[1180224000000, 1.965855],[1180310400000, 1.965855],[1180396800000, 1.965855],[1180483200000, 1.975801],[1180569600000, 1.962784]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });