$(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: 'Курс AZN, грн'}, 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: 'Курс AZN', data: [[1143849600000,5.55556],[1143936000000,5.55556],[1144022400000,5.55556],[1144108800000,5.55556],[1144195200000,5.55739],[1144281600000,5.55861],[1144368000000,5.558],[1144454400000,5.55984],[1144540800000,5.55984],[1144627200000,5.55984],[1144713600000,5.56045],[1144800000000,5.56167],[1144886400000,5.5629],[1144972800000,5.56842],[1145059200000,5.57518],[1145145600000,5.57518],[1145232000000,5.57518],[1145318400000,5.58011],[1145404800000,5.58011],[1145491200000,5.58134],[1145577600000,5.58443],[1145664000000,5.58381],[1145750400000,5.58381],[1145836800000,5.58381],[1145923200000,5.58381],[1146009600000,5.58752],[1146096000000,5.58628],[1146182400000,5.58876],[1146268800000,5.58876],[1146355200000,5.58876]], 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, 5.555556],[1143849600000, 5.555556],[1143936000000, 5.555556],[1144022400000, 5.555556],[1144108800000, 5.555556],[1144195200000, 5.557390],[1144281600000, 5.558613],[1144368000000, 5.558001],[1144454400000, 5.559837],[1144540800000, 5.559837],[1144627200000, 5.559837],[1144713600000, 5.560449],[1144800000000, 5.561674],[1144886400000, 5.562899],[1144972800000, 5.568420],[1145059200000, 5.575182],[1145145600000, 5.575182],[1145232000000, 5.575182],[1145318400000, 5.580110],[1145404800000, 5.580110],[1145491200000, 5.581344],[1145577600000, 5.584430],[1145664000000, 5.583812],[1145750400000, 5.583812],[1145836800000, 5.583812],[1145923200000, 5.583812],[1146009600000, 5.587519],[1146096000000, 5.586283],[1146182400000, 5.588756],[1146268800000, 5.588756],[1146355200000, 5.588756]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });