$(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: 'Курс XDR, грн'}, 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: 'Курс XDR', data: [[1238544000000,11.5121],[1238630400000,11.484],[1238716800000,11.5239],[1238803200000,11.5508],[1238889600000,11.5508],[1238976000000,11.5508],[1239062400000,11.5731],[1239148800000,11.4795],[1239235200000,11.4902],[1239321600000,11.4943],[1239408000000,11.4943],[1239494400000,11.4943],[1239580800000,11.4943],[1239667200000,11.4458],[1239753600000,11.5152],[1239840000000,11.5291],[1239926400000,11.4867],[1240012800000,11.4482],[1240099200000,11.4482],[1240185600000,11.4482],[1240272000000,11.4482],[1240358400000,11.4048],[1240444800000,11.4169],[1240531200000,11.4371],[1240617600000,11.5255],[1240704000000,11.5255],[1240790400000,11.5255],[1240876800000,11.4921],[1240963200000,11.4584],[1241049600000,11.5373]], 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.512073],[1238544000000, 11.512073],[1238630400000, 11.483950],[1238716800000, 11.523893],[1238803200000, 11.550791],[1238889600000, 11.550791],[1238976000000, 11.550791],[1239062400000, 11.573117],[1239148800000, 11.479482],[1239235200000, 11.490154],[1239321600000, 11.494339],[1239408000000, 11.494339],[1239494400000, 11.494339],[1239580800000, 11.494339],[1239667200000, 11.445797],[1239753600000, 11.515207],[1239840000000, 11.529052],[1239926400000, 11.486725],[1240012800000, 11.448248],[1240099200000, 11.448248],[1240185600000, 11.448248],[1240272000000, 11.448248],[1240358400000, 11.404839],[1240444800000, 11.416862],[1240531200000, 11.437110],[1240617600000, 11.525480],[1240704000000, 11.525480],[1240790400000, 11.525480],[1240876800000, 11.492091],[1240963200000, 11.458384],[1241049600000, 11.537257]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });