$(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: 'Курс GBP, грн'}, 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: 'Курс GBP', data: [[1022889600000,7.81092],[1022976000000,7.81092],[1023062400000,7.81092],[1023148800000,7.75298],[1023235200000,7.79609],[1023321600000,7.77049],[1023408000000,7.79187],[1023494400000,7.79187],[1023580800000,7.79187],[1023667200000,7.788],[1023753600000,7.788],[1023840000000,7.80527],[1023926400000,7.83696],[1024012800000,7.86807],[1024099200000,7.86807],[1024185600000,7.86807],[1024272000000,7.86807],[1024358400000,7.90556],[1024444800000,7.90556],[1024531200000,7.95109],[1024617600000,7.96839],[1024704000000,7.96839],[1024790400000,7.96839],[1024876800000,7.96839],[1024963200000,8.00639],[1025049600000,8.00639],[1025136000000,8.10373],[1025222400000,8.10373],[1025308800000,8.10373],[1025395200000,8.10373]], 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, 7.810920],[1022889600000, 7.810920],[1022976000000, 7.810920],[1023062400000, 7.810920],[1023148800000, 7.752980],[1023235200000, 7.796090],[1023321600000, 7.770490],[1023408000000, 7.791870],[1023494400000, 7.791870],[1023580800000, 7.791870],[1023667200000, 7.788000],[1023753600000, 7.788000],[1023840000000, 7.805270],[1023926400000, 7.836960],[1024012800000, 7.868070],[1024099200000, 7.868070],[1024185600000, 7.868070],[1024272000000, 7.868070],[1024358400000, 7.905560],[1024444800000, 7.905560],[1024531200000, 7.951090],[1024617600000, 7.968390],[1024704000000, 7.968390],[1024790400000, 7.968390],[1024876800000, 7.968390],[1024963200000, 8.006390],[1025049600000, 8.006390],[1025136000000, 8.103730],[1025222400000, 8.103730],[1025308800000, 8.103730],[1025395200000, 8.103730]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });