$(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: 'Курс GBP, грн'}, 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: 'Курс GBP', data: [[1188604800000,10.2088],[1188691200000,10.2088],[1188777600000,10.2088],[1188864000000,10.1874],[1188950400000,10.1568],[1189036800000,10.1508],[1189123200000,10.1917],[1189209600000,10.2118],[1189296000000,10.2118],[1189382400000,10.2118],[1189468800000,10.2531],[1189555200000,10.2633],[1189641600000,10.2559],[1189728000000,10.2415],[1189814400000,10.1564],[1189900800000,10.1564],[1189987200000,10.1564],[1190073600000,10.0935],[1190160000000,10.0731],[1190246400000,10.1014],[1190332800000,10.139],[1190419200000,10.1746],[1190505600000,10.1746],[1190592000000,10.1746],[1190678400000,10.2268],[1190764800000,10.1714],[1190851200000,null],[1190937600000,null],[1191024000000,10.2761],[1191110400000,10.2761]], 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: [[1188604800000, 10.208754],[1188604800000, 10.208754],[1188691200000, 10.208754],[1188777600000, 10.208754],[1188864000000, 10.187436],[1188950400000, 10.156842],[1189036800000, 10.150799],[1189123200000, 10.191710],[1189209600000, 10.211841],[1189296000000, 10.211841],[1189382400000, 10.211841],[1189468800000, 10.253109],[1189555200000, 10.263334],[1189641600000, 10.255851],[1189728000000, 10.241496],[1189814400000, 10.156425],[1189900800000, 10.156425],[1189987200000, 10.156425],[1190073600000, 10.093454],[1190160000000, 10.073123],[1190246400000, 10.101446],[1190332800000, 10.139024],[1190419200000, 10.174595],[1190505600000, 10.174595],[1190592000000, 10.174595],[1190678400000, 10.226812],[1190764800000, 10.171386],[1191024000000, 10.276112],[1191110400000, 10.276112]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });