$(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: 'Курс BYN, грн'}, 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: 'Курс BYN', data: [[1238544000000,0.00272],[1238630400000,0.00272],[1238716800000,0.00273],[1238803200000,0.00275],[1238889600000,0.00275],[1238976000000,0.00275],[1239062400000,0.00276],[1239148800000,0.00274],[1239235200000,0.00272],[1239321600000,0.00273],[1239408000000,0.00272],[1239494400000,0.00272],[1239580800000,0.00272],[1239667200000,0.00273],[1239753600000,0.00274],[1239840000000,0.00273],[1239926400000,0.00272],[1240012800000,0.00272],[1240099200000,0.00272],[1240185600000,0.00272],[1240272000000,0.00272],[1240358400000,0.00269],[1240444800000,0.00269],[1240531200000,0.0027],[1240617600000,0.00272],[1240704000000,0.00272],[1240790400000,0.00272],[1240876800000,0.00272],[1240963200000,0.00272],[1241049600000,0.00273]], 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: [[1238544000000, 0.002720],[1238544000000, 0.002720],[1238630400000, 0.002720],[1238716800000, 0.002730],[1238803200000, 0.002750],[1238889600000, 0.002750],[1238976000000, 0.002750],[1239062400000, 0.002760],[1239148800000, 0.002740],[1239235200000, 0.002720],[1239321600000, 0.002730],[1239408000000, 0.002720],[1239494400000, 0.002720],[1239580800000, 0.002720],[1239667200000, 0.002730],[1239753600000, 0.002740],[1239840000000, 0.002730],[1239926400000, 0.002720],[1240012800000, 0.002720],[1240099200000, 0.002720],[1240185600000, 0.002720],[1240272000000, 0.002720],[1240358400000, 0.002690],[1240444800000, 0.002690],[1240531200000, 0.002700],[1240617600000, 0.002720],[1240704000000, 0.002720],[1240790400000, 0.002720],[1240876800000, 0.002720],[1240963200000, 0.002720],[1241049600000, 0.002730]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });