$(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: [[1448928000000,17.2685],[1449014400000,17.3811],[1449100800000,17.32],[1449187200000,16.9334],[1449273600000,17.3043],[1449360000000,17.3043],[1449446400000,17.3043],[1449532800000,17.0704],[1449619200000,16.5031],[1449705600000,16.4994],[1449792000000,17.048],[1449878400000,17.2113],[1449964800000,17.2113],[1450051200000,17.2113],[1450137600000,17.1704],[1450224000000,16.9559],[1450310400000,16.9325],[1450396800000,16.8663],[1450483200000,16.7795],[1450569600000,16.7795],[1450656000000,16.7795],[1450742400000,16.8541],[1450828800000,16.7784],[1450915200000,16.6086],[1451001600000,16.6772],[1451088000000,16.8028],[1451174400000,16.8028],[1451260800000,16.8028],[1451347200000,17.2959],[1451433600000,17.3058],[1451520000000,17.4937]], 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: [[1448928000000, 17.268544],[1448928000000, 17.268544],[1449014400000, 17.381057],[1449100800000, 17.319994],[1449187200000, 16.933379],[1449273600000, 17.304336],[1449360000000, 17.304336],[1449446400000, 17.304336],[1449532800000, 17.070415],[1449619200000, 16.503140],[1449705600000, 16.499361],[1449792000000, 17.047968],[1449878400000, 17.211333],[1449964800000, 17.211333],[1450051200000, 17.211333],[1450137600000, 17.170443],[1450224000000, 16.955911],[1450310400000, 16.932454],[1450396800000, 16.866257],[1450483200000, 16.779491],[1450569600000, 16.779491],[1450656000000, 16.779491],[1450742400000, 16.854055],[1450828800000, 16.778357],[1450915200000, 16.608561],[1451001600000, 16.677205],[1451088000000, 16.802843],[1451174400000, 16.802843],[1451260800000, 16.802843],[1451347200000, 17.295886],[1451433600000, 17.305790],[1451520000000, 17.493748]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });