$(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: 'Курс RUB, грн'}, 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: 'Курс RUB', data: [[1049155200000,0.17],[1049241600000,0.17034],[1049328000000,0.17048],[1049414400000,0.17053],[1049500800000,0.17053],[1049587200000,0.17053],[1049673600000,0.17053],[1049760000000,0.17052],[1049846400000,0.17051],[1049932800000,0.17051],[1050019200000,0.1705],[1050105600000,0.1705],[1050192000000,0.1705],[1050278400000,0.17077],[1050364800000,0.17102],[1050451200000,0.17102],[1050537600000,0.17101],[1050624000000,0.17101],[1050710400000,0.17101],[1050796800000,0.17101],[1050883200000,0.17101],[1050969600000,0.17149],[1051056000000,0.17149],[1051142400000,0.1715],[1051228800000,0.1715],[1051315200000,0.1715],[1051401600000,0.1715],[1051488000000,0.1715],[1051574400000,0.1715],[1051660800000,0.17149]], 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: [[1049155200000, 0.170000],[1049155200000, 0.170000],[1049241600000, 0.170340],[1049328000000, 0.170480],[1049414400000, 0.170530],[1049500800000, 0.170530],[1049587200000, 0.170530],[1049673600000, 0.170530],[1049760000000, 0.170520],[1049846400000, 0.170510],[1049932800000, 0.170510],[1050019200000, 0.170500],[1050105600000, 0.170500],[1050192000000, 0.170500],[1050278400000, 0.170770],[1050364800000, 0.171020],[1050451200000, 0.171020],[1050537600000, 0.171010],[1050624000000, 0.171010],[1050710400000, 0.171010],[1050796800000, 0.171010],[1050883200000, 0.171010],[1050969600000, 0.171490],[1051056000000, 0.171490],[1051142400000, 0.171500],[1051228800000, 0.171500],[1051315200000, 0.171500],[1051401600000, 0.171500],[1051488000000, 0.171500],[1051574400000, 0.171500],[1051660800000, 0.171490]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });