$(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: [[1409529600000,17.9297],[1409616000000,17.2949],[1409702400000,17.0843],[1409788800000,16.4344],[1409875200000,null],[1409961600000,16.6881],[1410048000000,16.6881],[1410134400000,16.6881],[1410220800000,16.6021],[1410307200000,16.7354],[1410393600000,16.7104],[1410480000000,16.7774],[1410566400000,16.7419],[1410652800000,16.7419],[1410739200000,16.7419],[1410825600000,16.685],[1410912000000,16.769],[1410998400000,16.9403],[1411084800000,17.3935],[1411171200000,null],[1411257600000,17.2924],[1411344000000,17.2924],[1411430400000,null],[1411516800000,17.3743],[1411603200000,16.6877],[1411689600000,16.6104],[1411776000000,16.4097],[1411862400000,16.4097],[1411948800000,16.4097],[1412035200000,16.4347]], 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: [[1409529600000, 17.929693],[1409529600000, 17.929693],[1409616000000, 17.294891],[1409702400000, 17.084263],[1409788800000, 16.434447],[1409961600000, 16.688093],[1410048000000, 16.688093],[1410134400000, 16.688093],[1410220800000, 16.602059],[1410307200000, 16.735384],[1410393600000, 16.710405],[1410480000000, 16.777444],[1410566400000, 16.741866],[1410652800000, 16.741866],[1410739200000, 16.741866],[1410825600000, 16.685002],[1410912000000, 16.769026],[1410998400000, 16.940290],[1411084800000, 17.393461],[1411257600000, 17.292416],[1411344000000, 17.292416],[1411516800000, 17.374313],[1411603200000, 16.687696],[1411689600000, 16.610404],[1411776000000, 16.409658],[1411862400000, 16.409658],[1411948800000, 16.409658],[1412035200000, 16.434690]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });