$(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: [[1462060800000,19.2244],[1462147200000,19.2244],[1462233600000,19.2244],[1462320000000,19.2244],[1462406400000,18.8485],[1462492800000,18.825],[1462579200000,18.5494],[1462665600000,18.5494],[1462752000000,18.5494],[1462838400000,18.5494],[1462924800000,18.5074],[1463011200000,18.6726],[1463097600000,18.5502],[1463184000000,18.5398],[1463270400000,18.5398],[1463356800000,18.5398],[1463443200000,18.5218],[1463529600000,18.5058],[1463616000000,18.3543],[1463702400000,18.1733],[1463788800000,18.2187],[1463875200000,null],[1463961600000,18.2187],[1464048000000,18.1291],[1464134400000,17.9966],[1464220800000,18.0875],[1464307200000,18.1071],[1464393600000,18.1308],[1464480000000,18.1308],[1464566400000,18.1308],[1464652800000,18.0808]], 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: [[1462060800000, 19.224374],[1462060800000, 19.224374],[1462147200000, 19.224374],[1462233600000, 19.224374],[1462320000000, 19.224374],[1462406400000, 18.848541],[1462492800000, 18.824988],[1462579200000, 18.549374],[1462665600000, 18.549374],[1462752000000, 18.549374],[1462838400000, 18.549374],[1462924800000, 18.507430],[1463011200000, 18.672644],[1463097600000, 18.550225],[1463184000000, 18.539783],[1463270400000, 18.539783],[1463356800000, 18.539783],[1463443200000, 18.521786],[1463529600000, 18.505831],[1463616000000, 18.354255],[1463702400000, 18.173323],[1463788800000, 18.218680],[1463961600000, 18.218680],[1464048000000, 18.129083],[1464134400000, 17.996620],[1464220800000, 18.087491],[1464307200000, 18.107147],[1464393600000, 18.130797],[1464480000000, 18.130797],[1464566400000, 18.130797],[1464652800000, 18.080760]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });