$(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: [[1483228800000,3.82343],[1483315200000,3.82343],[1483401600000,3.82343],[1483488000000,3.82343],[1483574400000,3.74734],[1483660800000,3.74734],[1483747200000,3.84871],[1483833600000,3.84871],[1483920000000,3.84871],[1484006400000,3.84871],[1484092800000,3.8645],[1484179200000,3.83074],[1484265600000,3.91461],[1484352000000,null],[1484438400000,3.96747],[1484524800000,3.96747],[1484611200000,3.94941],[1484697600000,3.96962],[1484784000000,3.94257],[1484870400000,3.93697],[1484956800000,3.92178],[1485043200000,3.92178],[1485129600000,3.92178],[1485216000000,3.93841],[1485302400000,3.93605],[1485388800000,3.93052],[1485475200000,3.91545],[1485561600000,3.90539],[1485648000000,3.90539],[1485734400000,3.90539],[1485820800000,3.87597]], 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: [[1483228800000, 3.823429],[1483228800000, 3.823429],[1483315200000, 3.823429],[1483401600000, 3.823429],[1483488000000, 3.823429],[1483574400000, 3.747336],[1483660800000, 3.747336],[1483747200000, 3.848710],[1483833600000, 3.848710],[1483920000000, 3.848710],[1484006400000, 3.848710],[1484092800000, 3.864503],[1484179200000, 3.830745],[1484265600000, 3.914613],[1484438400000, 3.967474],[1484524800000, 3.967474],[1484611200000, 3.949409],[1484697600000, 3.969618],[1484784000000, 3.942567],[1484870400000, 3.936968],[1484956800000, 3.921781],[1485043200000, 3.921781],[1485129600000, 3.921781],[1485216000000, 3.938406],[1485302400000, 3.936048],[1485388800000, 3.930520],[1485475200000, 3.915445],[1485561600000, 3.905395],[1485648000000, 3.905395],[1485734400000, 3.905395],[1485820800000, 3.875971]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });