$(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: [[1375315200000,10.6107],[1375401600000,10.5795],[1375488000000,10.5532],[1375574400000,null],[1375660800000,10.5532],[1375747200000,10.5963],[1375833600000,10.6147],[1375920000000,10.6347],[1376006400000,10.6786],[1376092800000,10.689],[1376179200000,10.689],[1376265600000,10.689],[1376352000000,10.6147],[1376438400000,10.6227],[1376524800000,10.5851],[1376611200000,10.6283],[1376697600000,10.6627],[1376784000000,10.6627],[1376870400000,10.6627],[1376956800000,10.6659],[1377043200000,10.7042],[1377129600000,10.6978],[1377216000000,10.6491],[1377302400000,10.6747],[1377388800000,10.6747],[1377475200000,10.6747],[1377561600000,10.6747],[1377648000000,10.6611],[1377734400000,10.6683],[1377820800000,10.6035],[1377907200000,10.5787]], 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: [[1375315200000, 10.610708],[1375315200000, 10.610708],[1375401600000, 10.579535],[1375488000000, 10.553158],[1375660800000, 10.553158],[1375747200000, 10.596320],[1375833600000, 10.614704],[1375920000000, 10.634687],[1376006400000, 10.678648],[1376092800000, 10.689039],[1376179200000, 10.689039],[1376265600000, 10.689039],[1376352000000, 10.614704],[1376438400000, 10.622697],[1376524800000, 10.585130],[1376611200000, 10.628292],[1376697600000, 10.662662],[1376784000000, 10.662662],[1376870400000, 10.662662],[1376956800000, 10.665859],[1377043200000, 10.704226],[1377129600000, 10.697831],[1377216000000, 10.649074],[1377302400000, 10.674652],[1377388800000, 10.674652],[1377475200000, 10.674652],[1377561600000, 10.674652],[1377648000000, 10.661063],[1377734400000, 10.668257],[1377820800000, 10.603514],[1377907200000, 10.578735]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });