$(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: [[1143849600000,0.0230019],[1143936000000,0.0230019],[1144022400000,0.0230019],[1144108800000,0.0231426],[1144195200000,0.0233158],[1144281600000,0.0232592],[1144368000000,0.0231981],[1144454400000,0.0230291],[1144540800000,0.0230291],[1144627200000,0.0230291],[1144713600000,0.0228599],[1144800000000,0.0230715],[1144886400000,0.0230878],[1144972800000,0.022812],[1145059200000,0.022812],[1145145600000,0.022812],[1145232000000,0.022812],[1145318400000,0.022812],[1145404800000,0.0232019],[1145491200000,0.0235673],[1145577600000,0.0234186],[1145664000000,0.0234178],[1145750400000,0.0234178],[1145836800000,0.0234178],[1145923200000,0.0234178],[1146009600000,0.0238171],[1146096000000,0.0236083],[1146182400000,0.023623],[1146268800000,0.0239745],[1146355200000,0.0239745]], 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, 0.023002],[1143849600000, 0.023002],[1143936000000, 0.023002],[1144022400000, 0.023002],[1144108800000, 0.023143],[1144195200000, 0.023316],[1144281600000, 0.023259],[1144368000000, 0.023198],[1144454400000, 0.023029],[1144540800000, 0.023029],[1144627200000, 0.023029],[1144713600000, 0.022860],[1144800000000, 0.023072],[1144886400000, 0.023088],[1144972800000, 0.022812],[1145059200000, 0.022812],[1145145600000, 0.022812],[1145232000000, 0.022812],[1145318400000, 0.022812],[1145404800000, 0.023202],[1145491200000, 0.023567],[1145577600000, 0.023419],[1145664000000, 0.023418],[1145750400000, 0.023418],[1145836800000, 0.023418],[1145923200000, 0.023418],[1146009600000, 0.023817],[1146096000000, 0.023608],[1146182400000, 0.023623],[1146268800000, 0.023974],[1146355200000, 0.023974]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });