$(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: [[1235865600000,9.73588],[1235952000000,9.73588],[1236038400000,9.69892],[1236124800000,9.71355],[1236211200000,9.66735],[1236297600000,9.66735],[1236384000000,9.74666],[1236470400000,9.74666],[1236556800000,9.74666],[1236643200000,9.74666],[1236729600000,null],[1236816000000,9.84522],[1236902400000,9.84214],[1236988800000,9.93685],[1237075200000,9.93685],[1237161600000,9.93685],[1237248000000,10.0423],[1237334400000,9.96534],[1237420800000,10.1101],[1237507200000,10.5267],[1237593600000,10.4327],[1237680000000,10.4327],[1237766400000,10.4327],[1237852800000,10.4397],[1237939200000,10.4004],[1238025600000,10.3904],[1238112000000,10.4774],[1238198400000,10.2371],[1238284800000,10.2371],[1238371200000,10.2371],[1238457600000,10.1586]], 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: [[1235865600000, 9.735880],[1235865600000, 9.735880],[1235952000000, 9.735880],[1236038400000, 9.698920],[1236124800000, 9.713550],[1236211200000, 9.667350],[1236297600000, 9.667350],[1236384000000, 9.746660],[1236470400000, 9.746660],[1236556800000, 9.746660],[1236643200000, 9.746660],[1236816000000, 9.845220],[1236902400000, 9.842140],[1236988800000, 9.936850],[1237075200000, 9.936850],[1237161600000, 9.936850],[1237248000000, 10.042340],[1237334400000, 9.965340],[1237420800000, 10.110100],[1237507200000, 10.526670],[1237593600000, 10.432730],[1237680000000, 10.432730],[1237766400000, 10.432730],[1237852800000, 10.439660],[1237939200000, 10.400390],[1238025600000, 10.390380],[1238112000000, 10.477390],[1238198400000, 10.237150],[1238284800000, 10.237150],[1238371200000, 10.237150],[1238457600000, 10.158610]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });