$(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: 'Курс RUB, грн'}, 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: 'Курс RUB', data: [[1235865600000,0.21556],[1235952000000,0.21556],[1236038400000,0.21292],[1236124800000,0.21268],[1236211200000,0.21254],[1236297600000,0.21455],[1236384000000,0.21546],[1236470400000,0.21546],[1236556800000,0.21546],[1236643200000,0.21546],[1236729600000,null],[1236816000000,0.21927],[1236902400000,0.21816],[1236988800000,0.22106],[1237075200000,0.22106],[1237161600000,0.22106],[1237248000000,0.22102],[1237334400000,0.22298],[1237420800000,0.22371],[1237507200000,0.22766],[1237593600000,0.23038],[1237680000000,0.23038],[1237766400000,0.23038],[1237852800000,0.23121],[1237939200000,0.23142],[1238025600000,0.22831],[1238112000000,0.23008],[1238198400000,0.23045],[1238284800000,0.23045],[1238371200000,0.23045],[1238457600000,0.22638]], 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, 0.215560],[1235865600000, 0.215560],[1235952000000, 0.215560],[1236038400000, 0.212920],[1236124800000, 0.212680],[1236211200000, 0.212540],[1236297600000, 0.214550],[1236384000000, 0.215460],[1236470400000, 0.215460],[1236556800000, 0.215460],[1236643200000, 0.215460],[1236816000000, 0.219270],[1236902400000, 0.218160],[1236988800000, 0.221060],[1237075200000, 0.221060],[1237161600000, 0.221060],[1237248000000, 0.221020],[1237334400000, 0.222980],[1237420800000, 0.223710],[1237507200000, 0.227660],[1237593600000, 0.230380],[1237680000000, 0.230380],[1237766400000, 0.230380],[1237852800000, 0.231210],[1237939200000, 0.231420],[1238025600000, 0.228310],[1238112000000, 0.230080],[1238198400000, 0.230450],[1238284800000, 0.230450],[1238371200000, 0.230450],[1238457600000, 0.226380]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });