$(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: [[1238544000000,11.009],[1238630400000,11.0791],[1238716800000,11.2957],[1238803200000,11.3684],[1238889600000,11.3684],[1238976000000,11.3684],[1239062400000,11.4802],[1239148800000,11.2771],[1239235200000,11.328],[1239321600000,11.3005],[1239408000000,11.3005],[1239494400000,11.3005],[1239580800000,11.3005],[1239667200000,11.3005],[1239753600000,11.4667],[1239840000000,11.4989],[1239926400000,11.4735],[1240012800000,11.3895],[1240099200000,11.3895],[1240185600000,11.3895],[1240272000000,11.3895],[1240358400000,11.206],[1240444800000,11.224],[1240531200000,11.2048],[1240617600000,11.2457],[1240704000000,11.2457],[1240790400000,11.2457],[1240876800000,11.2198],[1240963200000,11.2359],[1241049600000,11.3656]], 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, 11.008982],[1238544000000, 11.008982],[1238630400000, 11.079101],[1238716800000, 11.295695],[1238803200000, 11.368360],[1238889600000, 11.368360],[1238976000000, 11.368360],[1239062400000, 11.480247],[1239148800000, 11.277112],[1239235200000, 11.328037],[1239321600000, 11.300542],[1239408000000, 11.300542],[1239494400000, 11.300542],[1239580800000, 11.300542],[1239667200000, 11.300542],[1239753600000, 11.466652],[1239840000000, 11.498934],[1239926400000, 11.473487],[1240012800000, 11.389511],[1240099200000, 11.389511],[1240185600000, 11.389511],[1240272000000, 11.389511],[1240358400000, 11.205987],[1240444800000, 11.224037],[1240531200000, 11.204839],[1240617600000, 11.245740],[1240704000000, 11.245740],[1240790400000, 11.245740],[1240876800000, 11.219817],[1240963200000, 11.235851],[1241049600000, 11.365586]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });