$(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: [[1114905600000,0.025913],[1114992000000,0.025913],[1115078400000,0.025913],[1115164800000,0.025913],[1115251200000,0.0261598],[1115337600000,0.0262817],[1115424000000,0.0261865],[1115510400000,0.0261865],[1115596800000,0.0261865],[1115683200000,0.0261865],[1115769600000,0.0258277],[1115856000000,0.0259511],[1115942400000,0.0257583],[1116028800000,0.0254657],[1116115200000,0.0254657],[1116201600000,0.0254657],[1116288000000,0.025212],[1116374400000,0.025224],[1116460800000,0.025227],[1116547200000,0.0253896],[1116633600000,0.025269],[1116720000000,0.025269],[1116806400000,0.025269],[1116892800000,0.025101],[1116979200000,0.0250949],[1117065600000,0.0248641],[1117152000000,0.0248726],[1117238400000,0.0250366],[1117324800000,0.0250366],[1117411200000,0.0250366],[1117497600000,0.0247957]], 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: [[1114905600000, 0.025913],[1114905600000, 0.025913],[1114992000000, 0.025913],[1115078400000, 0.025913],[1115164800000, 0.025913],[1115251200000, 0.026160],[1115337600000, 0.026282],[1115424000000, 0.026187],[1115510400000, 0.026187],[1115596800000, 0.026187],[1115683200000, 0.026187],[1115769600000, 0.025828],[1115856000000, 0.025951],[1115942400000, 0.025758],[1116028800000, 0.025466],[1116115200000, 0.025466],[1116201600000, 0.025466],[1116288000000, 0.025212],[1116374400000, 0.025224],[1116460800000, 0.025227],[1116547200000, 0.025390],[1116633600000, 0.025269],[1116720000000, 0.025269],[1116806400000, 0.025269],[1116892800000, 0.025101],[1116979200000, 0.025095],[1117065600000, 0.024864],[1117152000000, 0.024873],[1117238400000, 0.025037],[1117324800000, 0.025037],[1117411200000, 0.025037],[1117497600000, 0.024796]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });