$(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: [[1427846400000,17.8263],[1427932800000,17.8442],[1428019200000,17.7514],[1428105600000,17.5968],[1428192000000,17.5968],[1428278400000,17.5968],[1428364800000,17.7046],[1428451200000,17.9658],[1428537600000,18.1396],[1428624000000,18.0985],[1428710400000,17.4959],[1428796800000,17.4959],[1428883200000,17.4959],[1428969600000,17.4959],[1429056000000,17.3792],[1429142400000,16.5251],[1429228800000,16.6575],[1429315200000,16.4512],[1429401600000,16.4512],[1429488000000,16.4512],[1429574400000,17.2635],[1429660800000,17.2459],[1429747200000,17.5537],[1429833600000,17.4144],[1429920000000,17.5033],[1430006400000,17.5033],[1430092800000,17.5033],[1430179200000,17.8704],[1430265600000,17.6892],[1430352000000,16.8258]], 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: [[1427846400000, 17.826299],[1427846400000, 17.826299],[1427932800000, 17.844154],[1428019200000, 17.751363],[1428105600000, 17.596805],[1428192000000, 17.596805],[1428278400000, 17.596805],[1428364800000, 17.704566],[1428451200000, 17.965751],[1428537600000, 18.139598],[1428624000000, 18.098535],[1428710400000, 17.495883],[1428796800000, 17.495883],[1428883200000, 17.495883],[1428969600000, 17.495883],[1429056000000, 17.379168],[1429142400000, 16.525109],[1429228800000, 16.657474],[1429315200000, 16.451197],[1429401600000, 16.451197],[1429488000000, 16.451197],[1429574400000, 17.263531],[1429660800000, 17.245866],[1429747200000, 17.553695],[1429833600000, 17.414408],[1429920000000, 17.503345],[1430006400000, 17.503345],[1430092800000, 17.503345],[1430179200000, 17.870359],[1430265600000, 17.689159],[1430352000000, 16.825843]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });