$(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: 'Курс NOK, грн'}, 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: 'Курс NOK', data: [[1233446400000,1.11036],[1233532800000,1.11036],[1233619200000,1.09883],[1233705600000,1.09456],[1233792000000,1.10997],[1233878400000,1.12522],[1233964800000,1.1231],[1234051200000,1.1231],[1234137600000,1.1231],[1234224000000,1.15633],[1234310400000,1.15549],[1234396800000,1.1464],[1234483200000,1.12091],[1234569600000,null],[1234656000000,null],[1234742400000,1.13244],[1234828800000,1.11986],[1234915200000,1.10623],[1235001600000,1.09469],[1235088000000,1.12719],[1235174400000,1.10807],[1235260800000,1.10807],[1235347200000,1.10807],[1235433600000,1.13023],[1235520000000,1.12507],[1235606400000,1.12647],[1235692800000,1.12123],[1235779200000,1.09564]], 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.110359],[1233446400000, 1.110359],[1233532800000, 1.110359],[1233619200000, 1.098831],[1233705600000, 1.094560],[1233792000000, 1.109971],[1233878400000, 1.125223],[1233964800000, 1.123096],[1234051200000, 1.123096],[1234137600000, 1.123096],[1234224000000, 1.156333],[1234310400000, 1.155490],[1234396800000, 1.146405],[1234483200000, 1.120913],[1234742400000, 1.132436],[1234828800000, 1.119864],[1234915200000, 1.106229],[1235001600000, 1.094686],[1235088000000, 1.127186],[1235174400000, 1.108071],[1235260800000, 1.108071],[1235347200000, 1.108071],[1235433600000, 1.130228],[1235520000000, 1.125073],[1235606400000, 1.126475],[1235692800000, 1.121228],[1235779200000, 1.095643]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });