$(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: 'Курс DKK, грн'}, 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: 'Курс DKK', data: [[1231200000000,1.404],[1231286400000,1.37738],[1231372800000,1.37738],[1231459200000,1.40685],[1231545600000,1.41388],[1231632000000,1.41388],[1231718400000,1.41388],[1231804800000,1.38384],[1231891200000,1.37034],[1231977600000,1.36136],[1232064000000,1.35219],[1232150400000,1.37125],[1232236800000,null],[1232323200000,1.37125],[1232409600000,1.36227],[1232496000000,1.33614],[1232582400000,1.3342],[1232668800000,1.34145],[1232755200000,1.32181],[1232841600000,1.32181],[1232928000000,1.32181],[1233014400000,1.34196],[1233100800000,1.36112],[1233187200000,1.37004],[1233273600000,1.3547],[1233360000000,1.32406]], 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: [[1231200000000, 1.404003],[1231200000000, 1.404003],[1231286400000, 1.377384],[1231372800000, 1.377384],[1231459200000, 1.406847],[1231545600000, 1.413883],[1231632000000, 1.413883],[1231718400000, 1.413883],[1231804800000, 1.383845],[1231891200000, 1.370335],[1231977600000, 1.361359],[1232064000000, 1.352192],[1232150400000, 1.371254],[1232323200000, 1.371254],[1232409600000, 1.362270],[1232496000000, 1.336138],[1232582400000, 1.334197],[1232668800000, 1.341448],[1232755200000, 1.321815],[1232841600000, 1.321815],[1232928000000, 1.321815],[1233014400000, 1.341960],[1233100800000, 1.361115],[1233187200000, 1.370037],[1233273600000, 1.354697],[1233360000000, 1.324056]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });