$(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: [[978307200000,5.4345],[978393600000,5.4345],[978480000000,5.4345],[978566400000,5.4343],[978652800000,5.4345],[978739200000,5.4343],[978825600000,5.4343],[978912000000,5.4343],[978998400000,5.4343],[979084800000,5.434],[979171200000,5.434],[979257600000,5.4335],[979344000000,5.4334],[979430400000,5.4334],[979516800000,5.4334],[979603200000,5.4334],[979689600000,5.4334],[979776000000,5.4333],[979862400000,5.433],[979948800000,5.4327],[980035200000,5.4327],[980121600000,5.4327],[980208000000,5.4325],[980294400000,5.4325],[980380800000,5.4314],[980467200000,5.4314],[980553600000,5.4314],[980640000000,5.4314],[980726400000,5.4314],[980812800000,5.4307],[980899200000,5.4306]], 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: [[978307200000, 5.434500],[978307200000, 5.434500],[978393600000, 5.434500],[978480000000, 5.434500],[978566400000, 5.434300],[978652800000, 5.434500],[978739200000, 5.434300],[978825600000, 5.434300],[978912000000, 5.434300],[978998400000, 5.434300],[979084800000, 5.434000],[979171200000, 5.434000],[979257600000, 5.433500],[979344000000, 5.433400],[979430400000, 5.433400],[979516800000, 5.433400],[979603200000, 5.433400],[979689600000, 5.433400],[979776000000, 5.433300],[979862400000, 5.433000],[979948800000, 5.432700],[980035200000, 5.432700],[980121600000, 5.432700],[980208000000, 5.432500],[980294400000, 5.432500],[980380800000, 5.431400],[980467200000, 5.431400],[980553600000, 5.431400],[980640000000, 5.431400],[980726400000, 5.431400],[980812800000, 5.430700],[980899200000, 5.430600]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });