$(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: [[1477958400000,3.75428],[1478044800000,null],[1478131200000,3.81173],[1478217600000,3.80589],[1478304000000,3.81278],[1478390400000,3.81278],[1478476800000,3.81278],[1478563200000,3.80151],[1478649600000,3.79165],[1478736000000,3.78602],[1478822400000,3.74519],[1478908800000,3.75521],[1478995200000,3.75521],[1479081600000,3.75521],[1479168000000,3.72887],[1479254400000,3.76194],[1479340800000,3.78855],[1479427200000,3.75193],[1479513600000,3.69952],[1479600000000,3.69952],[1479686400000,3.69952],[1479772800000,3.6838],[1479859200000,3.66162],[1479945600000,3.64633],[1480032000000,3.62904],[1480118400000,3.66326],[1480204800000,3.66326],[1480291200000,3.66326],[1480377600000,3.65219],[1480464000000,3.63941]], 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: [[1477958400000, 3.754278],[1477958400000, 3.754278],[1478131200000, 3.811728],[1478217600000, 3.805891],[1478304000000, 3.812781],[1478390400000, 3.812781],[1478476800000, 3.812781],[1478563200000, 3.801508],[1478649600000, 3.791654],[1478736000000, 3.786025],[1478822400000, 3.745191],[1478908800000, 3.755208],[1478995200000, 3.755208],[1479081600000, 3.755208],[1479168000000, 3.728869],[1479254400000, 3.761945],[1479340800000, 3.788550],[1479427200000, 3.751928],[1479513600000, 3.699523],[1479600000000, 3.699523],[1479686400000, 3.699523],[1479772800000, 3.683799],[1479859200000, 3.661621],[1479945600000, 3.646334],[1480032000000, 3.629041],[1480118400000, 3.663258],[1480204800000, 3.663258],[1480291200000, 3.663258],[1480377600000, 3.652193],[1480464000000, 3.639405]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });