$(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: [[1438387200000,15.3036],[1438473600000,15.3036],[1438560000000,15.3036],[1438646400000,15.7805],[1438732800000,16.0656],[1438819200000,15.9066],[1438905600000,15.7488],[1438992000000,15.5814],[1439078400000,15.5814],[1439164800000,15.5814],[1439251200000,15.6572],[1439337600000,15.6548],[1439424000000,15.769],[1439510400000,15.7193],[1439596800000,16.0729],[1439683200000,16.0729],[1439769600000,16.0729],[1439856000000,16.1903],[1439942400000,16.2155],[1440028800000,16.2141],[1440115200000,16.1163],[1440201600000,16.2025],[1440288000000,16.2025],[1440374400000,16.2025],[1440460800000,null],[1440547200000,16.3334],[1440633600000,15.3039],[1440720000000,15.2338],[1440806400000,15.1192],[1440892800000,15.1192],[1440979200000,15.1192]], 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: [[1438387200000, 15.303576],[1438387200000, 15.303576],[1438473600000, 15.303576],[1438560000000, 15.303576],[1438646400000, 15.780517],[1438732800000, 16.065619],[1438819200000, 15.906561],[1438905600000, 15.748831],[1438992000000, 15.581363],[1439078400000, 15.581363],[1439164800000, 15.581363],[1439251200000, 15.657212],[1439337600000, 15.654816],[1439424000000, 15.769041],[1439510400000, 15.719259],[1439596800000, 16.072932],[1439683200000, 16.072932],[1439769600000, 16.072932],[1439856000000, 16.190301],[1439942400000, 16.215485],[1440028800000, 16.214070],[1440115200000, 16.116314],[1440201600000, 16.202537],[1440288000000, 16.202537],[1440374400000, 16.202537],[1440547200000, 16.333373],[1440633600000, 15.303881],[1440720000000, 15.233804],[1440806400000, 15.119232],[1440892800000, 15.119232],[1440979200000, 15.119232]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });