$(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: 'Курс EUR, грн'}, 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: 'Курс EUR', data: [[1238544000000,10.2472],[1238630400000,10.1994],[1238716800000,10.3118],[1238803200000,10.3372],[1238889600000,10.3372],[1238976000000,10.3372],[1239062400000,10.3919],[1239148800000,10.2064],[1239235200000,10.1879],[1239321600000,10.2202],[1239408000000,10.2202],[1239494400000,10.2202],[1239580800000,10.2202],[1239667200000,10.2202],[1239753600000,10.2225],[1239840000000,10.1432],[1239926400000,10.1609],[1240012800000,10.0547],[1240099200000,10.0547],[1240185600000,10.0547],[1240272000000,10.0547],[1240358400000,9.95764],[1240444800000,9.96919],[1240531200000,10.0485],[1240617600000,10.1886],[1240704000000,10.1886],[1240790400000,10.1886],[1240876800000,10.1062],[1240963200000,10.0038],[1241049600000,10.2148]], 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, 10.247160],[1238544000000, 10.247160],[1238630400000, 10.199420],[1238716800000, 10.311840],[1238803200000, 10.337250],[1238889600000, 10.337250],[1238976000000, 10.337250],[1239062400000, 10.391920],[1239148800000, 10.206350],[1239235200000, 10.187870],[1239321600000, 10.220210],[1239408000000, 10.220210],[1239494400000, 10.220210],[1239580800000, 10.220210],[1239667200000, 10.220210],[1239753600000, 10.222520],[1239840000000, 10.143210],[1239926400000, 10.160920],[1240012800000, 10.054660],[1240099200000, 10.054660],[1240185600000, 10.054660],[1240272000000, 10.054660],[1240358400000, 9.957640],[1240444800000, 9.969190],[1240531200000, 10.048500],[1240617600000, 10.188640],[1240704000000, 10.188640],[1240790400000, 10.188640],[1240876800000, 10.106250],[1240963200000, 10.003840],[1241049600000, 10.214820]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });