$(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: 'Курс CNY, грн'}, 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: 'Курс CNY', data: [[1235865600000,1.12577],[1235952000000,1.12577],[1236038400000,1.12477],[1236124800000,1.12552],[1236211200000,1.12522],[1236297600000,1.12562],[1236384000000,1.12573],[1236470400000,1.12573],[1236556800000,1.12573],[1236643200000,1.12573],[1236729600000,null],[1236816000000,1.12567],[1236902400000,1.12592],[1236988800000,1.12607],[1237075200000,1.12607],[1237161600000,1.12607],[1237248000000,1.12604],[1237334400000,1.12619],[1237420800000,1.1266],[1237507200000,1.12763],[1237593600000,1.12775],[1237680000000,1.12775],[1237766400000,1.12775],[1237852800000,1.12711],[1237939200000,1.12745],[1238025600000,1.12723],[1238112000000,1.13649],[1238198400000,1.12697],[1238284800000,1.12697],[1238371200000,1.12697],[1238457600000,1.11764]], 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, 1.125770],[1235865600000, 1.125770],[1235952000000, 1.125770],[1236038400000, 1.124773],[1236124800000, 1.125517],[1236211200000, 1.125223],[1236297600000, 1.125616],[1236384000000, 1.125727],[1236470400000, 1.125727],[1236556800000, 1.125727],[1236643200000, 1.125727],[1236816000000, 1.125670],[1236902400000, 1.125923],[1236988800000, 1.126065],[1237075200000, 1.126065],[1237161600000, 1.126065],[1237248000000, 1.126037],[1237334400000, 1.126193],[1237420800000, 1.126599],[1237507200000, 1.127632],[1237593600000, 1.127753],[1237680000000, 1.127753],[1237766400000, 1.127753],[1237852800000, 1.127113],[1237939200000, 1.127450],[1238025600000, 1.127233],[1238112000000, 1.136487],[1238198400000, 1.126968],[1238284800000, 1.126968],[1238371200000, 1.126968],[1238457600000, 1.117645]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });