$(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: [[1477958400000,19.3993],[1478044800000,null],[1478131200000,19.5852],[1478217600000,19.619],[1478304000000,19.6507],[1478390400000,19.6507],[1478476800000,19.6507],[1478563200000,19.6473],[1478649600000,19.6879],[1478736000000,19.6529],[1478822400000,19.4402],[1478908800000,19.4918],[1478995200000,19.4918],[1479081600000,19.4918],[1479168000000,19.4397],[1479254400000,19.6641],[1479340800000,19.6715],[1479427200000,19.4453],[1479513600000,19.1459],[1479600000000,19.1459],[1479686400000,19.1459],[1479772800000,19.0036],[1479859200000,18.9814],[1479945600000,18.9786],[1480032000000,18.9087],[1480118400000,19.1478],[1480204800000,19.1478],[1480291200000,19.1478],[1480377600000,19.1407],[1480464000000,19.0527]], 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: [[1477958400000, 19.399318],[1477958400000, 19.399318],[1478131200000, 19.585159],[1478217600000, 19.619035],[1478304000000, 19.650692],[1478390400000, 19.650692],[1478476800000, 19.650692],[1478563200000, 19.647328],[1478649600000, 19.687922],[1478736000000, 19.652943],[1478822400000, 19.440196],[1478908800000, 19.491831],[1478995200000, 19.491831],[1479081600000, 19.491831],[1479168000000, 19.439692],[1479254400000, 19.664088],[1479340800000, 19.671490],[1479427200000, 19.445274],[1479513600000, 19.145854],[1479600000000, 19.145854],[1479686400000, 19.145854],[1479772800000, 19.003590],[1479859200000, 18.981392],[1479945600000, 18.978588],[1480032000000, 18.908694],[1480118400000, 19.147795],[1480204800000, 19.147795],[1480291200000, 19.147795],[1480377600000, 19.140694],[1480464000000, 19.052708]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });