$(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: [[1072915200000,6.73368],[1073001600000,6.73368],[1073088000000,6.73368],[1073174400000,6.73368],[1073260800000,6.73368],[1073347200000,6.80061],[1073433600000,6.80061],[1073520000000,6.80061],[1073606400000,6.79035],[1073692800000,6.79035],[1073779200000,6.79035],[1073865600000,6.79035],[1073952000000,6.83886],[1074038400000,6.79675],[1074124800000,6.76636],[1074211200000,6.73597],[1074297600000,6.66014],[1074384000000,6.66014],[1074470400000,6.66014],[1074556800000,6.59617],[1074643200000,6.68307],[1074729600000,6.72092],[1074816000000,6.76623],[1074902400000,6.76623],[1074988800000,6.76623],[1075075200000,6.76623],[1075161600000,6.70386],[1075248000000,6.67294],[1075334400000,6.69746],[1075420800000,6.64681],[1075507200000,6.60203]], 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: [[1072915200000, 6.733680],[1072915200000, 6.733680],[1073001600000, 6.733680],[1073088000000, 6.733680],[1073174400000, 6.733680],[1073260800000, 6.733680],[1073347200000, 6.800610],[1073433600000, 6.800610],[1073520000000, 6.800610],[1073606400000, 6.790350],[1073692800000, 6.790350],[1073779200000, 6.790350],[1073865600000, 6.790350],[1073952000000, 6.838860],[1074038400000, 6.796750],[1074124800000, 6.766360],[1074211200000, 6.735970],[1074297600000, 6.660140],[1074384000000, 6.660140],[1074470400000, 6.660140],[1074556800000, 6.596170],[1074643200000, 6.683070],[1074729600000, 6.720920],[1074816000000, 6.766230],[1074902400000, 6.766230],[1074988800000, 6.766230],[1075075200000, 6.766230],[1075161600000, 6.703860],[1075248000000, 6.672940],[1075334400000, 6.697460],[1075420800000, 6.646810],[1075507200000, 6.602030]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });