$(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: [[1470009600000,3.70661],[1470096000000,3.71941],[1470182400000,3.73499],[1470268800000,3.7364],[1470355200000,3.71421],[1470441600000,3.72086],[1470528000000,3.72086],[1470614400000,3.72086],[1470700800000,3.70018],[1470787200000,3.69703],[1470873600000,3.7313],[1470960000000,3.72592],[1471046400000,3.75606],[1471132800000,3.75606],[1471219200000,3.75606],[1471305600000,3.77377],[1471392000000,3.80452],[1471478400000,3.80175],[1471564800000,3.82923],[1471651200000,3.84485],[1471737600000,3.84485],[1471824000000,3.84485],[1471910400000,3.84222],[1471996800000,3.85552],[1472083200000,3.85552],[1472169600000,3.84152],[1472256000000,3.85759],[1472342400000,3.85759],[1472428800000,3.85759],[1472515200000,3.82411],[1472601600000,3.84811]], 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: [[1470009600000, 3.706606],[1470009600000, 3.706606],[1470096000000, 3.719411],[1470182400000, 3.734989],[1470268800000, 3.736396],[1470355200000, 3.714207],[1470441600000, 3.720864],[1470528000000, 3.720864],[1470614400000, 3.720864],[1470700800000, 3.700185],[1470787200000, 3.697026],[1470873600000, 3.731296],[1470960000000, 3.725924],[1471046400000, 3.756057],[1471132800000, 3.756057],[1471219200000, 3.756057],[1471305600000, 3.773769],[1471392000000, 3.804517],[1471478400000, 3.801752],[1471564800000, 3.829231],[1471651200000, 3.844853],[1471737600000, 3.844853],[1471824000000, 3.844853],[1471910400000, 3.842220],[1471996800000, 3.855521],[1472083200000, 3.855521],[1472169600000, 3.841523],[1472256000000, 3.857595],[1472342400000, 3.857595],[1472428800000, 3.857595],[1472515200000, 3.824107],[1472601600000, 3.848112]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });