$(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: [[1141171200000,0.803763],[1141257600000,0.809175],[1141344000000,0.806952],[1141430400000,0.81349],[1141516800000,0.81349],[1141603200000,0.81349],[1141689600000,0.813243],[1141776000000,0.806465],[1141862400000,0.806465],[1141948800000,0.80696],[1142035200000,0.806838],[1142121600000,0.806838],[1142208000000,0.806838],[1142294400000,0.807052],[1142380800000,0.808715],[1142467200000,0.813896],[1142553600000,0.816828],[1142640000000,0.824679],[1142726400000,0.824679],[1142812800000,0.824679],[1142899200000,0.82389],[1142985600000,0.821772],[1143072000000,0.816817],[1143158400000,0.815903],[1143244800000,0.810125],[1143331200000,0.810125],[1143417600000,0.810125],[1143504000000,0.813839],[1143590400000,0.817843],[1143676800000,0.81296],[1143763200000,0.818634]], 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: [[1141171200000, 0.803763],[1141171200000, 0.803763],[1141257600000, 0.809175],[1141344000000, 0.806952],[1141430400000, 0.813490],[1141516800000, 0.813490],[1141603200000, 0.813490],[1141689600000, 0.813243],[1141776000000, 0.806465],[1141862400000, 0.806465],[1141948800000, 0.806960],[1142035200000, 0.806838],[1142121600000, 0.806838],[1142208000000, 0.806838],[1142294400000, 0.807052],[1142380800000, 0.808715],[1142467200000, 0.813896],[1142553600000, 0.816828],[1142640000000, 0.824679],[1142726400000, 0.824679],[1142812800000, 0.824679],[1142899200000, 0.823890],[1142985600000, 0.821772],[1143072000000, 0.816817],[1143158400000, 0.815903],[1143244800000, 0.810125],[1143331200000, 0.810125],[1143417600000, 0.810125],[1143504000000, 0.813839],[1143590400000, 0.817843],[1143676800000, 0.812960],[1143763200000, 0.818634]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });