$(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: 'Курс LVL, грн'}, 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: 'Курс LVL', data: [[1177977600000,9.87065],[1178064000000,9.87065],[1178150400000,9.87065],[1178236800000,9.86449],[1178323200000,9.82963],[1178409600000,9.82963],[1178496000000,9.82963],[1178582400000,9.87019],[1178668800000,9.82746],[1178755200000,9.82746],[1178841600000,9.80499],[1178928000000,9.77948],[1179014400000,9.77948],[1179100800000,9.77948],[1179187200000,9.82658],[1179273600000,9.82001],[1179360000000,9.84329],[1179446400000,9.80264],[1179532800000,9.77576],[1179619200000,9.77576],[1179705600000,9.77576],[1179792000000,9.75182],[1179878400000,9.75908],[1179964800000,9.78379],[1180051200000,9.75473],[1180137600000,9.75105],[1180224000000,9.75105],[1180310400000,9.75105],[1180396800000,9.75105],[1180483200000,9.79897],[1180569600000,9.73302]], 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, 9.870652],[1177977600000, 9.870652],[1178064000000, 9.870652],[1178150400000, 9.870652],[1178236800000, 9.864493],[1178323200000, 9.829633],[1178409600000, 9.829633],[1178496000000, 9.829633],[1178582400000, 9.870191],[1178668800000, 9.827458],[1178755200000, 9.827458],[1178841600000, 9.804988],[1178928000000, 9.779480],[1179014400000, 9.779480],[1179100800000, 9.779480],[1179187200000, 9.826576],[1179273600000, 9.820009],[1179360000000, 9.843294],[1179446400000, 9.802643],[1179532800000, 9.775761],[1179619200000, 9.775761],[1179705600000, 9.775761],[1179792000000, 9.751824],[1179878400000, 9.759078],[1179964800000, 9.783786],[1180051200000, 9.754726],[1180137600000, 9.751049],[1180224000000, 9.751049],[1180310400000, 9.751049],[1180396800000, 9.751049],[1180483200000, 9.798973],[1180569600000, 9.733017]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });