$(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: [[1488326400000,20.8484],[1488412800000,20.8183],[1488499200000,20.5808],[1488585600000,20.5299],[1488672000000,20.5299],[1488758400000,20.5299],[1488844800000,20.536],[1488931200000,20.483],[1489017600000,20.483],[1489104000000,20.216],[1489190400000,20.1737],[1489276800000,20.1737],[1489363200000,20.1737],[1489449600000,20.3706],[1489536000000,20.324],[1489622400000,20.4065],[1489708800000,20.7513],[1489795200000,20.7263],[1489881600000,20.7263],[1489968000000,20.7263],[1490054400000,20.7656],[1490140800000,20.7635],[1490227200000,20.6534],[1490313600000,20.6513],[1490400000000,20.6657],[1490486400000,20.6657],[1490572800000,20.6657],[1490659200000,20.7331],[1490745600000,20.622],[1490832000000,20.6705],[1490918400000,20.7065]], 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: [[1488326400000, 20.848401],[1488326400000, 20.848401],[1488412800000, 20.818330],[1488499200000, 20.580787],[1488585600000, 20.529870],[1488672000000, 20.529870],[1488758400000, 20.529870],[1488844800000, 20.535971],[1488931200000, 20.482997],[1489017600000, 20.482997],[1489104000000, 20.215962],[1489190400000, 20.173711],[1489276800000, 20.173711],[1489363200000, 20.173711],[1489449600000, 20.370562],[1489536000000, 20.323994],[1489622400000, 20.406484],[1489708800000, 20.751292],[1489795200000, 20.726310],[1489881600000, 20.726310],[1489968000000, 20.726310],[1490054400000, 20.765574],[1490140800000, 20.763487],[1490227200000, 20.653372],[1490313600000, 20.651304],[1490400000000, 20.665693],[1490486400000, 20.665693],[1490572800000, 20.665693],[1490659200000, 20.733116],[1490745600000, 20.622036],[1490832000000, 20.670489],[1490918400000, 20.706458]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });