$(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: 'Курс AUD, грн'}, 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: 'Курс AUD', data: [[1456790400000,19.3321],[1456876800000,19.3782],[1456963200000,19.3909],[1457049600000,19.2401],[1457136000000,19.5621],[1457222400000,19.5621],[1457308800000,19.5621],[1457395200000,19.5621],[1457481600000,19.5621],[1457568000000,19.6112],[1457654400000,19.0788],[1457740800000,19.411],[1457827200000,19.5423],[1457913600000,19.5423],[1458000000000,19.9829],[1458086400000,20.076],[1458172800000,19.9188],[1458259200000,20.3671],[1458345600000,19.9942],[1458432000000,19.9942],[1458518400000,19.9942],[1458604800000,20.2319],[1458691200000,19.8401],[1458777600000,19.6627],[1458864000000,19.7077],[1458950400000,19.5712],[1459036800000,19.5712],[1459123200000,19.5712],[1459209600000,19.7287],[1459296000000,19.8618],[1459382400000,20.1065]], 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: [[1456790400000, 19.332123],[1456790400000, 19.332123],[1456876800000, 19.378166],[1456963200000, 19.390915],[1457049600000, 19.240148],[1457136000000, 19.562118],[1457222400000, 19.562118],[1457308800000, 19.562118],[1457395200000, 19.562118],[1457481600000, 19.562118],[1457568000000, 19.611152],[1457654400000, 19.078769],[1457740800000, 19.410992],[1457827200000, 19.542284],[1457913600000, 19.542284],[1458000000000, 19.982878],[1458086400000, 20.075964],[1458172800000, 19.918829],[1458259200000, 20.367104],[1458345600000, 19.994170],[1458432000000, 19.994170],[1458518400000, 19.994170],[1458604800000, 20.231887],[1458691200000, 19.840084],[1458777600000, 19.662672],[1458864000000, 19.707671],[1458950400000, 19.571173],[1459036800000, 19.571173],[1459123200000, 19.571173],[1459209600000, 19.728680],[1459296000000, 19.861760],[1459382400000, 20.106547]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });