$(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: 'Курс NOK, грн'}, 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: 'Курс NOK', data: [[1430438400000,2.82664],[1430524800000,2.82664],[1430611200000,2.82664],[1430697600000,2.82664],[1430784000000,2.82664],[1430870400000,2.78113],[1430956800000,2.80657],[1431043200000,2.81318],[1431129600000,2.75653],[1431216000000,2.75653],[1431302400000,2.75653],[1431388800000,2.75653],[1431475200000,2.76307],[1431561600000,2.76205],[1431648000000,2.78533],[1431734400000,2.79981],[1431820800000,2.79981],[1431907200000,2.79981],[1431993600000,3.00554],[1432080000000,2.84402],[1432166400000,2.75553],[1432252800000,2.72996],[1432339200000,2.76487],[1432425600000,2.76487],[1432512000000,2.76487],[1432598400000,2.76526],[1432684800000,2.79707],[1432771200000,null],[1432857600000,2.70099],[1432944000000,2.70971],[1433030400000,2.70971]], 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: [[1430438400000, 2.826642],[1430438400000, 2.826642],[1430524800000, 2.826642],[1430611200000, 2.826642],[1430697600000, 2.826642],[1430784000000, 2.826642],[1430870400000, 2.781133],[1430956800000, 2.806566],[1431043200000, 2.813178],[1431129600000, 2.756533],[1431216000000, 2.756533],[1431302400000, 2.756533],[1431388800000, 2.756533],[1431475200000, 2.763066],[1431561600000, 2.762053],[1431648000000, 2.785329],[1431734400000, 2.799805],[1431820800000, 2.799805],[1431907200000, 2.799805],[1431993600000, 3.005541],[1432080000000, 2.844022],[1432166400000, 2.755525],[1432252800000, 2.729958],[1432339200000, 2.764873],[1432425600000, 2.764873],[1432512000000, 2.764873],[1432598400000, 2.765262],[1432684800000, 2.797071],[1432857600000, 2.700995],[1432944000000, 2.709714],[1433030400000, 2.709714]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });