$(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: 'Курс USD, грн'}, 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: 'Курс USD', data: [[1022889600000,5.3296],[1022976000000,5.3296],[1023062400000,5.3296],[1023148800000,5.3296],[1023235200000,5.3296],[1023321600000,5.3299],[1023408000000,5.3295],[1023494400000,5.3295],[1023580800000,5.3295],[1023667200000,5.3295],[1023753600000,5.3295],[1023840000000,5.3295],[1023926400000,5.3295],[1024012800000,5.3295],[1024099200000,5.3295],[1024185600000,5.3295],[1024272000000,5.3295],[1024358400000,5.329],[1024444800000,5.329],[1024531200000,5.329],[1024617600000,5.3288],[1024704000000,5.3288],[1024790400000,5.3288],[1024876800000,5.3288],[1024963200000,5.3288],[1025049600000,5.3288],[1025136000000,5.3288],[1025222400000,5.3288],[1025308800000,5.3288],[1025395200000,5.3288]], 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, 5.329600],[1022889600000, 5.329600],[1022976000000, 5.329600],[1023062400000, 5.329600],[1023148800000, 5.329600],[1023235200000, 5.329600],[1023321600000, 5.329900],[1023408000000, 5.329500],[1023494400000, 5.329500],[1023580800000, 5.329500],[1023667200000, 5.329500],[1023753600000, 5.329500],[1023840000000, 5.329500],[1023926400000, 5.329500],[1024012800000, 5.329500],[1024099200000, 5.329500],[1024185600000, 5.329500],[1024272000000, 5.329500],[1024358400000, 5.329000],[1024444800000, 5.329000],[1024531200000, 5.329000],[1024617600000, 5.328800],[1024704000000, 5.328800],[1024790400000, 5.328800],[1024876800000, 5.328800],[1024963200000, 5.328800],[1025049600000, 5.328800],[1025136000000, 5.328800],[1025222400000, 5.328800],[1025308800000, 5.328800],[1025395200000, 5.328800]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });