$(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: [[1454284800000,0.33995],[1454371200000,0.33342],[1454457600000,0.33201],[1454544000000,0.32423],[1454630400000,0.33864],[1454716800000,0.33505],[1454803200000,0.33505],[1454889600000,0.33505],[1454976000000,0.33668],[1455062400000,0.32975],[1455148800000,0.32808],[1455235200000,0.3297],[1455321600000,0.32892],[1455408000000,0.32892],[1455494400000,0.32892],[1455580800000,0.3448],[1455667200000,0.35438],[1455753600000,0.34327],[1455840000000,0.35069],[1455926400000,0.35167],[1456012800000,0.35167],[1456099200000,0.35167],[1456185600000,0.35023],[1456272000000,0.35308],[1456358400000,0.3563],[1456444800000,0.35669],[1456531200000,0.36029],[1456617600000,0.36029],[1456704000000,0.36029]], 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: [[1454284800000, 0.339950],[1454284800000, 0.339950],[1454371200000, 0.333420],[1454457600000, 0.332010],[1454544000000, 0.324230],[1454630400000, 0.338640],[1454716800000, 0.335050],[1454803200000, 0.335050],[1454889600000, 0.335050],[1454976000000, 0.336680],[1455062400000, 0.329750],[1455148800000, 0.328080],[1455235200000, 0.329700],[1455321600000, 0.328920],[1455408000000, 0.328920],[1455494400000, 0.328920],[1455580800000, 0.344800],[1455667200000, 0.354380],[1455753600000, 0.343270],[1455840000000, 0.350690],[1455926400000, 0.351670],[1456012800000, 0.351670],[1456099200000, 0.351670],[1456185600000, 0.350230],[1456272000000, 0.353080],[1456358400000, 0.356300],[1456444800000, 0.356690],[1456531200000, 0.360290],[1456617600000, 0.360290],[1456704000000, 0.360290]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });