$(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: 'Курс CAD, грн'}, 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: 'Курс CAD', data: [[1438387200000,16.1912],[1438473600000,16.1912],[1438560000000,16.1912],[1438646400000,16.5113],[1438732800000,16.5373],[1438819200000,16.3737],[1438905600000,16.3158],[1438992000000,16.1213],[1439078400000,16.1213],[1439164800000,16.1213],[1439251200000,16.1925],[1439337600000,16.3458],[1439424000000,16.4895],[1439510400000,16.4435],[1439596800000,16.6807],[1439683200000,16.6807],[1439769600000,16.6807],[1439856000000,16.7621],[1439942400000,16.8543],[1440028800000,16.8826],[1440115200000,16.7838],[1440201600000,16.8567],[1440288000000,16.8567],[1440374400000,16.8567],[1440460800000,null],[1440547200000,17.1468],[1440633600000,16.1518],[1440720000000,16.1178],[1440806400000,15.9635],[1440892800000,15.9635],[1440979200000,15.9635]], 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, 16.191205],[1438387200000, 16.191205],[1438473600000, 16.191205],[1438560000000, 16.191205],[1438646400000, 16.511258],[1438732800000, 16.537284],[1438819200000, 16.373748],[1438905600000, 16.315802],[1438992000000, 16.121316],[1439078400000, 16.121316],[1439164800000, 16.121316],[1439251200000, 16.192464],[1439337600000, 16.345820],[1439424000000, 16.489531],[1439510400000, 16.443508],[1439596800000, 16.680727],[1439683200000, 16.680727],[1439769600000, 16.680727],[1439856000000, 16.762141],[1439942400000, 16.854304],[1440028800000, 16.882587],[1440115200000, 16.783847],[1440201600000, 16.856687],[1440288000000, 16.856687],[1440374400000, 16.856687],[1440547200000, 17.146760],[1440633600000, 16.151792],[1440720000000, 16.117781],[1440806400000, 15.963458],[1440892800000, 15.963458],[1440979200000, 15.963458]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });