$(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: [[1238544000000,5.33262],[1238630400000,5.34533],[1238716800000,5.4859],[1238803200000,5.49474],[1238889600000,5.49474],[1238976000000,5.49474],[1239062400000,5.48271],[1239148800000,5.45357],[1239235200000,5.46442],[1239321600000,5.49621],[1239408000000,5.49621],[1239494400000,5.49621],[1239580800000,5.49621],[1239667200000,5.49621],[1239753600000,5.6103],[1239840000000,5.52703],[1239926400000,5.54787],[1240012800000,5.5474],[1240099200000,5.5474],[1240185600000,5.5474],[1240272000000,5.5474],[1240358400000,5.37989],[1240444800000,5.42689],[1240531200000,5.48978],[1240617600000,5.5367],[1240704000000,5.5367],[1240790400000,5.5367],[1240876800000,5.49342],[1240963200000,5.40427],[1241049600000,5.54129]], 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: [[1238544000000, 5.332619],[1238544000000, 5.332619],[1238630400000, 5.345328],[1238716800000, 5.485897],[1238803200000, 5.494738],[1238889600000, 5.494738],[1238976000000, 5.494738],[1239062400000, 5.482705],[1239148800000, 5.453567],[1239235200000, 5.464423],[1239321600000, 5.496214],[1239408000000, 5.496214],[1239494400000, 5.496214],[1239580800000, 5.496214],[1239667200000, 5.496214],[1239753600000, 5.610296],[1239840000000, 5.527032],[1239926400000, 5.547868],[1240012800000, 5.547399],[1240099200000, 5.547399],[1240185600000, 5.547399],[1240272000000, 5.547399],[1240358400000, 5.379891],[1240444800000, 5.426886],[1240531200000, 5.489784],[1240617600000, 5.536703],[1240704000000, 5.536703],[1240790400000, 5.536703],[1240876800000, 5.493423],[1240963200000, 5.404268],[1241049600000, 5.541293]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });