$(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: [[991353600000,5.4149],[991440000000,5.4147],[991526400000,5.4147],[991612800000,5.4147],[991699200000,5.4147],[991785600000,5.4142],[991872000000,5.4139],[991958400000,5.4141],[992044800000,5.4116],[992131200000,5.4116],[992217600000,5.4116],[992304000000,5.4096],[992390400000,5.4082],[992476800000,5.407],[992563200000,5.4029],[992649600000,5.4029],[992736000000,5.4029],[992822400000,5.4029],[992908800000,5.3998],[992995200000,5.3947],[993081600000,5.3912],[993168000000,5.39],[993254400000,5.3867],[993340800000,5.3867],[993427200000,5.3867],[993513600000,5.3843],[993600000000,5.3816],[993686400000,5.3828],[993772800000,5.3828],[993859200000,5.3828]], 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: [[991353600000, 5.414900],[991353600000, 5.414900],[991440000000, 5.414700],[991526400000, 5.414700],[991612800000, 5.414700],[991699200000, 5.414700],[991785600000, 5.414200],[991872000000, 5.413900],[991958400000, 5.414100],[992044800000, 5.411600],[992131200000, 5.411600],[992217600000, 5.411600],[992304000000, 5.409600],[992390400000, 5.408200],[992476800000, 5.407000],[992563200000, 5.402900],[992649600000, 5.402900],[992736000000, 5.402900],[992822400000, 5.402900],[992908800000, 5.399800],[992995200000, 5.394700],[993081600000, 5.391200],[993168000000, 5.390000],[993254400000, 5.386700],[993340800000, 5.386700],[993427200000, 5.386700],[993513600000, 5.384300],[993600000000, 5.381600],[993686400000, 5.382800],[993772800000, 5.382800],[993859200000, 5.382800]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });