$(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: [[1517443200000,22.5856],[1517529600000,22.3052],[1517616000000,22.2883],[1517702400000,22.2883],[1517788800000,22.2883],[1517875200000,22.0324],[1517961600000,21.5263],[1518048000000,21.334],[1518134400000,21.1752],[1518220800000,21.1239],[1518307200000,21.1239],[1518393600000,21.1239],[1518480000000,21.0383],[1518566400000,20.9535],[1518652800000,20.9545],[1518739200000,21.2166],[1518825600000,21.4345],[1518912000000,21.4345],[1518998400000,21.4345],[1519084800000,21.3842],[1519171200000,21.3497],[1519257600000,21.1857],[1519344000000,21.1691],[1519430400000,21.1154],[1519516800000,21.1154],[1519603200000,21.1154],[1519689600000,21.179],[1519776000000,21.1167]], 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: [[1517443200000, 22.585557],[1517443200000, 22.585557],[1517529600000, 22.305237],[1517616000000, 22.288301],[1517702400000, 22.288301],[1517788800000, 22.288301],[1517875200000, 22.032434],[1517961600000, 21.526260],[1518048000000, 21.333975],[1518134400000, 21.175196],[1518220800000, 21.123945],[1518307200000, 21.123945],[1518393600000, 21.123945],[1518480000000, 21.038250],[1518566400000, 20.953528],[1518652800000, 20.954543],[1518739200000, 21.216618],[1518825600000, 21.434498],[1518912000000, 21.434498],[1518998400000, 21.434498],[1519084800000, 21.384151],[1519171200000, 21.349702],[1519257600000, 21.185714],[1519344000000, 21.169116],[1519430400000, 21.115363],[1519516800000, 21.115363],[1519603200000, 21.115363],[1519689600000, 21.178958],[1519776000000, 21.116679]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });