$(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: 'Курс PLN, грн'}, 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: 'Курс PLN', data: [[1177977600000,1.82335],[1178064000000,1.82335],[1178150400000,1.82335],[1178236800000,1.82912],[1178323200000,1.82602],[1178409600000,1.82602],[1178496000000,1.82602],[1178582400000,1.83775],[1178668800000,1.82625],[1178755200000,1.82625],[1178841600000,1.81515],[1178928000000,1.80237],[1179014400000,1.80237],[1179100800000,1.80237],[1179187200000,1.81743],[1179273600000,1.80707],[1179360000000,1.80877],[1179446400000,1.80485],[1179532800000,1.79708],[1179619200000,1.79708],[1179705600000,1.79708],[1179792000000,1.80109],[1179878400000,1.79714],[1179964800000,1.79701],[1180051200000,1.78717],[1180137600000,1.78132],[1180224000000,1.78132],[1180310400000,1.78132],[1180396800000,1.78132],[1180483200000,1.78775],[1180569600000,1.77012]], 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.823351],[1177977600000, 1.823351],[1178064000000, 1.823351],[1178150400000, 1.823351],[1178236800000, 1.829120],[1178323200000, 1.826020],[1178409600000, 1.826020],[1178496000000, 1.826020],[1178582400000, 1.837750],[1178668800000, 1.826249],[1178755200000, 1.826249],[1178841600000, 1.815150],[1178928000000, 1.802369],[1179014400000, 1.802369],[1179100800000, 1.802369],[1179187200000, 1.817426],[1179273600000, 1.807071],[1179360000000, 1.808768],[1179446400000, 1.804850],[1179532800000, 1.797076],[1179619200000, 1.797076],[1179705600000, 1.797076],[1179792000000, 1.801093],[1179878400000, 1.797141],[1179964800000, 1.797006],[1180051200000, 1.787168],[1180137600000, 1.781316],[1180224000000, 1.781316],[1180310400000, 1.781316],[1180396800000, 1.781316],[1180483200000, 1.787748],[1180569600000, 1.770125]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });