$(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: [[1294272000000,7.95779],[1294358400000,7.93053],[1294444800000,7.93053],[1294531200000,7.93053],[1294617600000,7.93053],[1294704000000,7.8765],[1294790400000,7.8455],[1294876800000,7.88225],[1294963200000,7.95089],[1295049600000,7.8451],[1295136000000,7.8451],[1295222400000,7.8451],[1295308800000,7.90885],[1295395200000,7.91785],[1295481600000,7.99243],[1295568000000,7.87859],[1295654400000,7.85823],[1295740800000,7.85823],[1295827200000,7.85823],[1295913600000,7.87148],[1296000000000,7.86476],[1296086400000,7.91096],[1296172800000,7.85611],[1296259200000,7.91633],[1296345600000,7.91633],[1296432000000,7.91633]], 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: [[1294272000000, 7.957795],[1294272000000, 7.957795],[1294358400000, 7.930527],[1294444800000, 7.930527],[1294531200000, 7.930527],[1294617600000, 7.930527],[1294704000000, 7.876501],[1294790400000, 7.845498],[1294876800000, 7.882251],[1294963200000, 7.950890],[1295049600000, 7.845103],[1295136000000, 7.845103],[1295222400000, 7.845103],[1295308800000, 7.908850],[1295395200000, 7.917853],[1295481600000, 7.992433],[1295568000000, 7.878586],[1295654400000, 7.858228],[1295740800000, 7.858228],[1295827200000, 7.858228],[1295913600000, 7.871477],[1296000000000, 7.864757],[1296086400000, 7.910957],[1296172800000, 7.856113],[1296259200000, 7.916326],[1296345600000, 7.916326],[1296432000000, 7.916326]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });