$(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: 'Курс CHF, грн'}, 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: 'Курс CHF', data: [[1451606400000,24.2492],[1451692800000,24.2492],[1451779200000,24.2492],[1451865600000,24.2492],[1451952000000,24.2492],[1452038400000,23.5622],[1452124800000,23.2773],[1452211200000,23.2773],[1452297600000,23.2773],[1452384000000,23.2773],[1452470400000,23.2773],[1452556800000,23.5585],[1452643200000,23.226],[1452729600000,23.4039],[1452816000000,23.8261],[1452902400000,24.1057],[1452988800000,24.3006],[1453075200000,24.3006],[1453161600000,24.5156],[1453248000000,24.7214],[1453334400000,24.6046],[1453420800000,24.3963],[1453507200000,24.4707],[1453593600000,24.4707],[1453680000000,24.4707],[1453766400000,24.4545],[1453852800000,24.4629],[1453939200000,24.466],[1454025600000,24.8104],[1454112000000,25.0414],[1454198400000,25.0414]], 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: [[1451606400000, 24.249241],[1451606400000, 24.249241],[1451692800000, 24.249241],[1451779200000, 24.249241],[1451865600000, 24.249241],[1451952000000, 24.249241],[1452038400000, 23.562233],[1452124800000, 23.277335],[1452211200000, 23.277335],[1452297600000, 23.277335],[1452384000000, 23.277335],[1452470400000, 23.277335],[1452556800000, 23.558458],[1452643200000, 23.226033],[1452729600000, 23.403939],[1452816000000, 23.826098],[1452902400000, 24.105677],[1452988800000, 24.300579],[1453075200000, 24.300579],[1453161600000, 24.515575],[1453248000000, 24.721448],[1453334400000, 24.604647],[1453420800000, 24.396316],[1453507200000, 24.470658],[1453593600000, 24.470658],[1453680000000, 24.470658],[1453766400000, 24.454465],[1453852800000, 24.462948],[1453939200000, 24.466003],[1454025600000, 24.810435],[1454112000000, 25.041360],[1454198400000, 25.041360]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });