$(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: 'Курс HUF, грн'}, 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: 'Курс HUF', data: [[1149120000000,0.0247943],[1149206400000,0.0244365],[1149292800000,0.0247139],[1149379200000,0.0247139],[1149465600000,0.0247139],[1149552000000,0.0247927],[1149638400000,0.0246261],[1149724800000,0.0245718],[1149811200000,0.0243209],[1149897600000,0.0242041],[1149984000000,0.0242041],[1150070400000,0.0242041],[1150156800000,0.0242041],[1150243200000,0.023449],[1150329600000,0.0235717],[1150416000000,0.0234551],[1150502400000,0.0234192],[1150588800000,0.0234192],[1150675200000,0.0234192],[1150761600000,0.0230822],[1150848000000,0.0229323],[1150934400000,0.0228431],[1151020800000,0.0227714],[1151107200000,0.0224808],[1151193600000,0.0224808],[1151280000000,0.0224808],[1151366400000,0.0226506],[1151452800000,0.0227361],[1151539200000,0.0227361],[1151625600000,0.0223416]], 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: [[1149120000000, 0.024794],[1149120000000, 0.024794],[1149206400000, 0.024436],[1149292800000, 0.024714],[1149379200000, 0.024714],[1149465600000, 0.024714],[1149552000000, 0.024793],[1149638400000, 0.024626],[1149724800000, 0.024572],[1149811200000, 0.024321],[1149897600000, 0.024204],[1149984000000, 0.024204],[1150070400000, 0.024204],[1150156800000, 0.024204],[1150243200000, 0.023449],[1150329600000, 0.023572],[1150416000000, 0.023455],[1150502400000, 0.023419],[1150588800000, 0.023419],[1150675200000, 0.023419],[1150761600000, 0.023082],[1150848000000, 0.022932],[1150934400000, 0.022843],[1151020800000, 0.022771],[1151107200000, 0.022481],[1151193600000, 0.022481],[1151280000000, 0.022481],[1151366400000, 0.022651],[1151452800000, 0.022736],[1151539200000, 0.022736],[1151625600000, 0.022342]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });