$(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: [[1430438400000,17.5816],[1430524800000,17.5816],[1430611200000,17.5816],[1430697600000,17.5816],[1430784000000,17.5816],[1430870400000,17.4804],[1430956800000,17.507],[1431043200000,17.1687],[1431129600000,17.0119],[1431216000000,17.0119],[1431302400000,17.0119],[1431388800000,17.0119],[1431475200000,17.1405],[1431561600000,17.1796],[1431648000000,17.2137],[1431734400000,17.1949],[1431820800000,17.1949],[1431907200000,17.1949],[1431993600000,18.3434],[1432080000000,17.4478],[1432166400000,17.0419],[1432252800000,16.9277],[1432339200000,17.0795],[1432425600000,17.0795],[1432512000000,17.0795],[1432598400000,17.1907],[1432684800000,17.3131],[1432771200000,null],[1432857600000,16.8708],[1432944000000,16.9451],[1433030400000,16.9451]], 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: [[1430438400000, 17.581588],[1430438400000, 17.581588],[1430524800000, 17.581588],[1430611200000, 17.581588],[1430697600000, 17.581588],[1430784000000, 17.581588],[1430870400000, 17.480373],[1430956800000, 17.506962],[1431043200000, 17.168737],[1431129600000, 17.011917],[1431216000000, 17.011917],[1431302400000, 17.011917],[1431388800000, 17.011917],[1431475200000, 17.140521],[1431561600000, 17.179577],[1431648000000, 17.213720],[1431734400000, 17.194902],[1431820800000, 17.194902],[1431907200000, 17.194902],[1431993600000, 18.343366],[1432080000000, 17.447778],[1432166400000, 17.041919],[1432252800000, 16.927749],[1432339200000, 17.079488],[1432425600000, 17.079488],[1432512000000, 17.079488],[1432598400000, 17.190685],[1432684800000, 17.313081],[1432857600000, 16.870787],[1432944000000, 16.945144],[1433030400000, 16.945144]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });