$(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: 'Курс TRY, грн'}, 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: 'Курс TRY', data: [[1235865600000,4.51613],[1235952000000,4.51613],[1236038400000,4.45886],[1236124800000,4.45535],[1236211200000,4.45336],[1236297600000,4.37833],[1236384000000,4.30316],[1236470400000,4.30316],[1236556800000,4.30316],[1236643200000,4.30316],[1236729600000,null],[1236816000000,4.4468],[1236902400000,4.41669],[1236988800000,4.51019],[1237075200000,4.51019],[1237161600000,4.51019],[1237248000000,4.55084],[1237334400000,4.50696],[1237420800000,4.50158],[1237507200000,4.56748],[1237593600000,4.56135],[1237680000000,4.56135],[1237766400000,4.56135],[1237852800000,4.60424],[1237939200000,4.63992],[1238025600000,4.63174],[1238112000000,4.64629],[1238198400000,4.60676],[1238284800000,4.60676],[1238371200000,4.60676],[1238457600000,4.54483]], 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, 4.516133],[1235865600000, 4.516133],[1235952000000, 4.516133],[1236038400000, 4.458864],[1236124800000, 4.455348],[1236211200000, 4.453358],[1236297600000, 4.378329],[1236384000000, 4.303161],[1236470400000, 4.303161],[1236556800000, 4.303161],[1236643200000, 4.303161],[1236816000000, 4.446802],[1236902400000, 4.416685],[1236988800000, 4.510190],[1237075200000, 4.510190],[1237161600000, 4.510190],[1237248000000, 4.550841],[1237334400000, 4.506960],[1237420800000, 4.501581],[1237507200000, 4.567479],[1237593600000, 4.561354],[1237680000000, 4.561354],[1237766400000, 4.561354],[1237852800000, 4.604243],[1237939200000, 4.639924],[1238025600000, 4.631739],[1238112000000, 4.646293],[1238198400000, 4.606764],[1238284800000, 4.606764],[1238371200000, 4.606764],[1238457600000, 4.544833]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });