$(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: 'Курс USD, грн'}, 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: 'Курс USD', data: [[1001894400000,5.3311],[1001980800000,5.332],[1002067200000,5.332],[1002153600000,5.3307],[1002240000000,5.3227],[1002326400000,5.3227],[1002412800000,5.3227],[1002499200000,5.3227],[1002585600000,5.3227],[1002672000000,5.3208],[1002758400000,5.3177],[1002844800000,5.3103],[1002931200000,5.3103],[1003017600000,5.3103],[1003104000000,5.3103],[1003190400000,5.3095],[1003276800000,5.3095],[1003363200000,5.3041],[1003449600000,5.3014],[1003536000000,5.3014],[1003622400000,5.3014],[1003708800000,5.2987],[1003795200000,5.2987],[1003881600000,5.2987],[1003968000000,5.2956],[1004054400000,5.2944],[1004140800000,5.2944],[1004227200000,5.2944],[1004313600000,5.2944],[1004400000000,5.2944],[1004486400000,5.2937]], 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: [[1001894400000, 5.331100],[1001894400000, 5.331100],[1001980800000, 5.332000],[1002067200000, 5.332000],[1002153600000, 5.330700],[1002240000000, 5.322700],[1002326400000, 5.322700],[1002412800000, 5.322700],[1002499200000, 5.322700],[1002585600000, 5.322700],[1002672000000, 5.320800],[1002758400000, 5.317700],[1002844800000, 5.310300],[1002931200000, 5.310300],[1003017600000, 5.310300],[1003104000000, 5.310300],[1003190400000, 5.309500],[1003276800000, 5.309500],[1003363200000, 5.304100],[1003449600000, 5.301400],[1003536000000, 5.301400],[1003622400000, 5.301400],[1003708800000, 5.298700],[1003795200000, 5.298700],[1003881600000, 5.298700],[1003968000000, 5.295600],[1004054400000, 5.294400],[1004140800000, 5.294400],[1004227200000, 5.294400],[1004313600000, 5.294400],[1004400000000, 5.294400],[1004486400000, 5.293700]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });