$(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: [[1485907200000,3.91594],[1485993600000,3.9171],[1486080000000,3.92153],[1486166400000,3.91046],[1486252800000,3.91046],[1486339200000,3.91046],[1486425600000,3.92672],[1486512000000,3.88102],[1486598400000,3.86083],[1486684800000,3.88654],[1486771200000,3.88978],[1486857600000,3.88978],[1486944000000,3.88978],[1487030400000,3.88303],[1487116800000,3.89017],[1487203200000,3.83237],[1487289600000,3.86709],[1487376000000,3.8721],[1487462400000,3.8721],[1487548800000,3.8721],[1487635200000,3.85967],[1487721600000,3.83339],[1487808000000,3.81486],[1487894400000,3.827],[1487980800000,3.8496],[1488067200000,3.8496],[1488153600000,3.8496],[1488240000000,3.85327]], 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: [[1485907200000, 3.915943],[1485907200000, 3.915943],[1485993600000, 3.917100],[1486080000000, 3.921526],[1486166400000, 3.910462],[1486252800000, 3.910462],[1486339200000, 3.910462],[1486425600000, 3.926725],[1486512000000, 3.881020],[1486598400000, 3.860830],[1486684800000, 3.886543],[1486771200000, 3.889775],[1486857600000, 3.889775],[1486944000000, 3.889775],[1487030400000, 3.883026],[1487116800000, 3.890171],[1487203200000, 3.832369],[1487289600000, 3.867092],[1487376000000, 3.872096],[1487462400000, 3.872096],[1487548800000, 3.872096],[1487635200000, 3.859666],[1487721600000, 3.833388],[1487808000000, 3.814855],[1487894400000, 3.827002],[1487980800000, 3.849597],[1488067200000, 3.849597],[1488153600000, 3.849597],[1488240000000, 3.853267]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });