$(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: 'Курс EUR, грн'}, 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: 'Курс EUR', data: [[1143849600000,6.11252],[1143936000000,6.11252],[1144022400000,6.11252],[1144108800000,6.09182],[1144195200000,6.16958],[1144281600000,6.19231],[1144368000000,6.21756],[1144454400000,6.15039],[1144540800000,6.15039],[1144627200000,6.15039],[1144713600000,6.10999],[1144800000000,6.11303],[1144886400000,6.12312],[1144972800000,6.10747],[1145059200000,6.10747],[1145145600000,6.10747],[1145232000000,6.10747],[1145318400000,6.10747],[1145404800000,6.18726],[1145491200000,6.23473],[1145577600000,6.23473],[1145664000000,6.21908],[1145750400000,6.21908],[1145836800000,6.21908],[1145923200000,6.21908],[1146009600000,6.27463],[1146096000000,6.27463],[1146182400000,6.26907],[1146268800000,6.33118],[1146355200000,6.33118]], 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: [[1143849600000, 6.112520],[1143849600000, 6.112520],[1143936000000, 6.112520],[1144022400000, 6.112520],[1144108800000, 6.091815],[1144195200000, 6.169585],[1144281600000, 6.192310],[1144368000000, 6.217560],[1144454400000, 6.150395],[1144540800000, 6.150395],[1144627200000, 6.150395],[1144713600000, 6.109995],[1144800000000, 6.113025],[1144886400000, 6.123125],[1144972800000, 6.107470],[1145059200000, 6.107470],[1145145600000, 6.107470],[1145232000000, 6.107470],[1145318400000, 6.107470],[1145404800000, 6.187260],[1145491200000, 6.234730],[1145577600000, 6.234730],[1145664000000, 6.219075],[1145750400000, 6.219075],[1145836800000, 6.219075],[1145923200000, 6.219075],[1146009600000, 6.274625],[1146096000000, 6.274625],[1146182400000, 6.269070],[1146268800000, 6.331185],[1146355200000, 6.331185]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });