$(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: 'Курс CHF, грн'}, 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: 'Курс CHF', data: [[1491004800000,27.0091],[1491091200000,27.0091],[1491177600000,27.0091],[1491264000000,26.9715],[1491350400000,27.0631],[1491436800000,27.0809],[1491523200000,27.0092],[1491609600000,26.8101],[1491696000000,26.8101],[1491782400000,26.8101],[1491868800000,26.671],[1491955200000,26.6926],[1492041600000,26.6919],[1492128000000,26.7234],[1492214400000,26.6715],[1492300800000,26.6715],[1492387200000,26.6715],[1492473600000,26.6715],[1492560000000,26.8349],[1492646400000,26.8748],[1492732800000,26.8668],[1492819200000,26.7778],[1492905600000,26.7778],[1492992000000,26.7778],[1493078400000,26.7774],[1493164800000,26.7917],[1493251200000,26.7312],[1493337600000,26.7011],[1493424000000,26.8037],[1493510400000,26.8037]], 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: [[1491004800000, 27.009113],[1491004800000, 27.009113],[1491091200000, 27.009113],[1491177600000, 27.009113],[1491264000000, 26.971511],[1491350400000, 27.063053],[1491436800000, 27.080925],[1491523200000, 27.009164],[1491609600000, 26.810058],[1491696000000, 26.810058],[1491782400000, 26.810058],[1491868800000, 26.671019],[1491955200000, 26.692635],[1492041600000, 26.691936],[1492128000000, 26.723427],[1492214400000, 26.671549],[1492300800000, 26.671549],[1492387200000, 26.671549],[1492473600000, 26.671549],[1492560000000, 26.834910],[1492646400000, 26.874785],[1492732800000, 26.866751],[1492819200000, 26.777835],[1492905600000, 26.777835],[1492992000000, 26.777835],[1493078400000, 26.777370],[1493164800000, 26.791731],[1493251200000, 26.731207],[1493337600000, 26.701142],[1493424000000, 26.803708],[1493510400000, 26.803708]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });