$(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: 'Курс XDR, грн'}, 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: 'Курс XDR', data: [[1438387200000,29.4654],[1438473600000,29.4654],[1438560000000,29.4654],[1438646400000,30.2808],[1438732800000,30.2918],[1438819200000,29.9766],[1438905600000,29.8905],[1438992000000,29.3448],[1439078400000,29.3448],[1439164800000,29.3448],[1439251200000,29.5799],[1439337600000,29.845],[1439424000000,29.976],[1439510400000,29.9707],[1439596800000,30.5399],[1439683200000,30.5399],[1439769600000,30.5399],[1439856000000,30.818],[1439942400000,30.9142],[1440028800000,30.8526],[1440115200000,30.9331],[1440201600000,31.1668],[1440288000000,31.1668],[1440374400000,31.1668],[1440460800000,null],[1440547200000,32.1768],[1440633600000,30.3766],[1440720000000,30.0482],[1440806400000,29.8311],[1440892800000,29.8311],[1440979200000,29.8311]], 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, 29.465364],[1438387200000, 29.465364],[1438473600000, 29.465364],[1438560000000, 29.465364],[1438646400000, 30.280763],[1438732800000, 30.291846],[1438819200000, 29.976572],[1438905600000, 29.890459],[1438992000000, 29.344813],[1439078400000, 29.344813],[1439164800000, 29.344813],[1439251200000, 29.579861],[1439337600000, 29.844990],[1439424000000, 29.976006],[1439510400000, 29.970678],[1439596800000, 30.539903],[1439683200000, 30.539903],[1439769600000, 30.539903],[1439856000000, 30.818036],[1439942400000, 30.914165],[1440028800000, 30.852589],[1440115200000, 30.933098],[1440201600000, 31.166796],[1440288000000, 31.166796],[1440374400000, 31.166796],[1440547200000, 32.176799],[1440633600000, 30.376632],[1440720000000, 30.048158],[1440806400000, 29.831086],[1440892800000, 29.831086],[1440979200000, 29.831086]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });