$(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: 'Курс DKK, грн'}, 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: 'Курс DKK', data: [[1409529600000,2.40606],[1409616000000,2.32084],[1409702400000,2.29337],[1409788800000,2.20665],[1409875200000,null],[1409961600000,2.24092],[1410048000000,2.24092],[1410134400000,2.24092],[1410220800000,2.22981],[1410307200000,2.24769],[1410393600000,2.24451],[1410480000000,2.25379],[1410566400000,2.24919],[1410652800000,2.24919],[1410739200000,2.24919],[1410825600000,2.24149],[1410912000000,2.25263],[1410998400000,2.27545],[1411084800000,2.33601],[1411171200000,null],[1411257600000,2.32266],[1411344000000,2.32266],[1411430400000,null],[1411516800000,2.3341],[1411603200000,2.24182],[1411689600000,2.2315],[1411776000000,2.20462],[1411862400000,2.20462],[1411948800000,2.20462],[1412035200000,2.20801]], 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, 2.406057],[1409529600000, 2.406057],[1409616000000, 2.320839],[1409702400000, 2.293374],[1409788800000, 2.206647],[1409961600000, 2.240915],[1410048000000, 2.240915],[1410134400000, 2.240915],[1410220800000, 2.229811],[1410307200000, 2.247688],[1410393600000, 2.244514],[1410480000000, 2.253791],[1410566400000, 2.249193],[1410652800000, 2.249193],[1410739200000, 2.249193],[1410825600000, 2.241493],[1410912000000, 2.252630],[1410998400000, 2.275453],[1411084800000, 2.336010],[1411257600000, 2.322657],[1411344000000, 2.322657],[1411516800000, 2.334096],[1411603200000, 2.241825],[1411689600000, 2.231501],[1411776000000, 2.204621],[1411862400000, 2.204621],[1411948800000, 2.204621],[1412035200000, 2.208014]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });