$(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: [[1022889600000,0.17024],[1022976000000,0.17024],[1023062400000,0.17024],[1023148800000,0.1702],[1023235200000,0.17013],[1023321600000,0.16978],[1023408000000,0.16975],[1023494400000,0.16975],[1023580800000,0.16975],[1023667200000,0.1697],[1023753600000,0.1697],[1023840000000,0.16977],[1023926400000,0.16975],[1024012800000,0.16975],[1024099200000,0.16975],[1024185600000,0.16975],[1024272000000,0.16975],[1024358400000,0.16965],[1024444800000,0.16965],[1024531200000,0.16953],[1024617600000,0.16942],[1024704000000,0.16942],[1024790400000,0.16942],[1024876800000,0.16942],[1024963200000,0.1693],[1025049600000,0.1693],[1025136000000,0.1695],[1025222400000,0.1695],[1025308800000,0.1695],[1025395200000,0.1695]], 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: [[1022889600000, 0.170240],[1022889600000, 0.170240],[1022976000000, 0.170240],[1023062400000, 0.170240],[1023148800000, 0.170200],[1023235200000, 0.170130],[1023321600000, 0.169780],[1023408000000, 0.169750],[1023494400000, 0.169750],[1023580800000, 0.169750],[1023667200000, 0.169700],[1023753600000, 0.169700],[1023840000000, 0.169770],[1023926400000, 0.169750],[1024012800000, 0.169750],[1024099200000, 0.169750],[1024185600000, 0.169750],[1024272000000, 0.169750],[1024358400000, 0.169650],[1024444800000, 0.169650],[1024531200000, 0.169530],[1024617600000, 0.169420],[1024704000000, 0.169420],[1024790400000, 0.169420],[1024876800000, 0.169420],[1024963200000, 0.169300],[1025049600000, 0.169300],[1025136000000, 0.169500],[1025222400000, 0.169500],[1025308800000, 0.169500],[1025395200000, 0.169500]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });