$(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: [[1509494400000,20.5536],[1509580800000,20.6205],[1509667200000,20.7459],[1509753600000,20.6997],[1509840000000,20.6997],[1509926400000,20.6997],[1510012800000,20.5817],[1510099200000,20.4671],[1510185600000,20.4528],[1510272000000,20.3959],[1510358400000,20.3347],[1510444800000,20.3347],[1510531200000,20.3347],[1510617600000,20.2375],[1510704000000,20.2591],[1510790400000,20.1225],[1510876800000,20.0976],[1510963200000,19.9947],[1511049600000,19.9947],[1511136000000,19.9947],[1511222400000,20.0055],[1511308800000,20.0721],[1511395200000,20.1949],[1511481600000,20.4902],[1511568000000,20.5103],[1511654400000,20.5103],[1511740800000,20.5103],[1511827200000,20.4864],[1511913600000,20.4528],[1512000000000,20.445]], 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: [[1509494400000, 20.553595],[1509494400000, 20.553595],[1509580800000, 20.620508],[1509667200000, 20.745908],[1509753600000, 20.699656],[1509840000000, 20.699656],[1509926400000, 20.699656],[1510012800000, 20.581715],[1510099200000, 20.467071],[1510185600000, 20.452769],[1510272000000, 20.395947],[1510358400000, 20.334669],[1510444800000, 20.334669],[1510531200000, 20.334669],[1510617600000, 20.237518],[1510704000000, 20.259090],[1510790400000, 20.122545],[1510876800000, 20.097620],[1510963200000, 19.994673],[1511049600000, 19.994673],[1511136000000, 19.994673],[1511222400000, 20.005546],[1511308800000, 20.072141],[1511395200000, 20.194943],[1511481600000, 20.490236],[1511568000000, 20.510322],[1511654400000, 20.510322],[1511740800000, 20.510322],[1511827200000, 20.486405],[1511913600000, 20.452799],[1512000000000, 20.444983]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });