$(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: 'Курс EUR, грн'}, 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: 'Курс EUR', data: [[1438387200000,23.1696],[1438473600000,23.1696],[1438560000000,23.1696],[1438646400000,23.7828],[1438732800000,23.8269],[1438819200000,23.4701],[1438905600000,23.3854],[1438992000000,23.0744],[1439078400000,23.0744],[1439164800000,23.0744],[1439251200000,23.3042],[1439337600000,23.6262],[1439424000000,23.8554],[1439510400000,23.7691],[1439596800000,24.3055],[1439683200000,24.3055],[1439769600000,24.3055],[1439856000000,24.4409],[1439942400000,24.4286],[1440028800000,24.3633],[1440115200000,24.637],[1440201600000,24.926],[1440288000000,24.926],[1440374400000,24.926],[1440460800000,null],[1440547200000,26.0305],[1440633600000,24.4296],[1440720000000,24.0542],[1440806400000,23.8718],[1440892800000,23.8718],[1440979200000,23.8718]], 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, 23.169615],[1438387200000, 23.169615],[1438473600000, 23.169615],[1438560000000, 23.169615],[1438646400000, 23.782817],[1438732800000, 23.826919],[1438819200000, 23.470131],[1438905600000, 23.385438],[1438992000000, 23.074440],[1439078400000, 23.074440],[1439164800000, 23.074440],[1439251200000, 23.304194],[1439337600000, 23.626249],[1439424000000, 23.855405],[1439510400000, 23.769091],[1439596800000, 24.305488],[1439683200000, 24.305488],[1439769600000, 24.305488],[1439856000000, 24.440878],[1439942400000, 24.428628],[1440028800000, 24.363262],[1440115200000, 24.637009],[1440201600000, 24.925983],[1440288000000, 24.925983],[1440374400000, 24.925983],[1440547200000, 26.030497],[1440633600000, 24.429585],[1440720000000, 24.054176],[1440806400000, 23.871755],[1440892800000, 23.871755],[1440979200000, 23.871755]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });