$(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: 'Курс XDR, грн'}, 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: 'Курс XDR', data: [[1443657600000,29.8934],[1443744000000,29.6211],[1443830400000,29.6266],[1443916800000,29.6266],[1444003200000,29.6266],[1444089600000,29.8053],[1444176000000,29.8394],[1444262400000,29.9247],[1444348800000,30.0113],[1444435200000,30.3413],[1444521600000,30.3413],[1444608000000,30.3413],[1444694400000,30.7951],[1444780800000,30.9607],[1444867200000,30.9607],[1444953600000,30.7557],[1445040000000,30.0925],[1445126400000,30.0925],[1445212800000,30.0925],[1445299200000,30.5278],[1445385600000,31.1015],[1445472000000,31.943],[1445558400000,31.4491],[1445644800000,31.6135],[1445731200000,31.6135],[1445817600000,31.6135],[1445904000000,31.9893],[1445990400000,31.9806],[1446076800000,32.0054],[1446163200000,31.9087],[1446249600000,32.1193]], 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: [[1443657600000, 29.893437],[1443657600000, 29.893437],[1443744000000, 29.621087],[1443830400000, 29.626649],[1443916800000, 29.626649],[1444003200000, 29.626649],[1444089600000, 29.805285],[1444176000000, 29.839379],[1444262400000, 29.924685],[1444348800000, 30.011344],[1444435200000, 30.341305],[1444521600000, 30.341305],[1444608000000, 30.341305],[1444694400000, 30.795130],[1444780800000, 30.960667],[1444867200000, 30.960667],[1444953600000, 30.755666],[1445040000000, 30.092547],[1445126400000, 30.092547],[1445212800000, 30.092547],[1445299200000, 30.527767],[1445385600000, 31.101472],[1445472000000, 31.943032],[1445558400000, 31.449098],[1445644800000, 31.613475],[1445731200000, 31.613475],[1445817600000, 31.613475],[1445904000000, 31.989330],[1445990400000, 31.980610],[1446076800000, 32.005363],[1446163200000, 31.908722],[1446249600000, 32.119348]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });