$(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: [[1233446400000,1.32406],[1233532800000,1.32406],[1233619200000,1.31818],[1233705600000,1.32748],[1233792000000,1.32456],[1233878400000,1.32576],[1233964800000,1.32226],[1234051200000,1.32226],[1234137600000,1.32226],[1234224000000,1.34409],[1234310400000,1.33975],[1234396800000,1.33689],[1234483200000,1.32594],[1234569600000,null],[1234656000000,null],[1234742400000,1.3249],[1234828800000,1.31889],[1234915200000,1.30545],[1235001600000,1.30164],[1235088000000,1.31306],[1235174400000,1.30133],[1235260800000,1.30133],[1235347200000,1.30133],[1235433600000,1.32268],[1235520000000,1.31916],[1235606400000,1.32252],[1235692800000,1.32111],[1235779200000,1.30676]], 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: [[1233446400000, 1.324056],[1233446400000, 1.324056],[1233532800000, 1.324056],[1233619200000, 1.318182],[1233705600000, 1.327483],[1233792000000, 1.324565],[1233878400000, 1.325755],[1233964800000, 1.322256],[1234051200000, 1.322256],[1234137600000, 1.322256],[1234224000000, 1.344090],[1234310400000, 1.339746],[1234396800000, 1.336893],[1234483200000, 1.325937],[1234742400000, 1.324903],[1234828800000, 1.318893],[1234915200000, 1.305446],[1235001600000, 1.301641],[1235088000000, 1.313064],[1235174400000, 1.301334],[1235260800000, 1.301334],[1235347200000, 1.301334],[1235433600000, 1.322675],[1235520000000, 1.319164],[1235606400000, 1.322525],[1235692800000, 1.321110],[1235779200000, 1.306759]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });