$(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: [[1501545600000,20.6076],[1501632000000,20.6186],[1501718400000,20.6385],[1501804800000,20.5451],[1501891200000,20.6007],[1501977600000,20.6007],[1502064000000,20.6007],[1502150400000,20.4027],[1502236800000,20.4277],[1502323200000,20.2819],[1502409600000,20.246],[1502496000000,20.2052],[1502582400000,20.2052],[1502668800000,20.2052],[1502755200000,20.1765],[1502841600000,20.0685],[1502928000000,20.0937],[1503014400000,20.2188],[1503100800000,20.1792],[1503187200000,20.1792],[1503273600000,20.1792],[1503360000000,null],[1503446400000,20.1244],[1503532800000,20.1803],[1503619200000,20.1803],[1503705600000,20.1803],[1503792000000,20.1803],[1503878400000,20.1803],[1503964800000,20.2742],[1504051200000,20.2838],[1504137600000,20.2987]], 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: [[1501545600000, 20.607565],[1501545600000, 20.607565],[1501632000000, 20.618629],[1501718400000, 20.638550],[1501804800000, 20.545073],[1501891200000, 20.600716],[1501977600000, 20.600716],[1502064000000, 20.600716],[1502150400000, 20.402747],[1502236800000, 20.427659],[1502323200000, 20.281884],[1502409600000, 20.246028],[1502496000000, 20.205189],[1502582400000, 20.205189],[1502668800000, 20.205189],[1502755200000, 20.176508],[1502841600000, 20.068505],[1502928000000, 20.093709],[1503014400000, 20.218790],[1503100800000, 20.179185],[1503187200000, 20.179185],[1503273600000, 20.179185],[1503446400000, 20.124404],[1503532800000, 20.180256],[1503619200000, 20.180256],[1503705600000, 20.180256],[1503792000000, 20.180256],[1503878400000, 20.180256],[1503964800000, 20.274218],[1504051200000, 20.283771],[1504137600000, 20.298735]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });