$(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: 'Курс RUB, грн'}, 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: 'Курс RUB', data: [[1238544000000,0.22712],[1238630400000,0.22683],[1238716800000,0.22806],[1238803200000,0.23047],[1238889600000,0.23047],[1238976000000,0.23047],[1239062400000,0.23211],[1239148800000,0.23065],[1239235200000,0.22796],[1239321600000,0.22962],[1239408000000,0.22896],[1239494400000,0.22896],[1239580800000,0.22896],[1239667200000,0.22994],[1239753600000,0.23062],[1239840000000,0.23019],[1239926400000,0.23041],[1240012800000,0.23007],[1240099200000,0.23007],[1240185600000,0.23007],[1240272000000,0.23007],[1240358400000,0.22578],[1240444800000,0.22607],[1240531200000,0.22791],[1240617600000,0.23041],[1240704000000,0.23041],[1240790400000,0.23041],[1240876800000,0.23061],[1240963200000,0.22949],[1241049600000,0.23159]], 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, 0.227120],[1238544000000, 0.227120],[1238630400000, 0.226830],[1238716800000, 0.228060],[1238803200000, 0.230470],[1238889600000, 0.230470],[1238976000000, 0.230470],[1239062400000, 0.232110],[1239148800000, 0.230650],[1239235200000, 0.227960],[1239321600000, 0.229620],[1239408000000, 0.228960],[1239494400000, 0.228960],[1239580800000, 0.228960],[1239667200000, 0.229940],[1239753600000, 0.230620],[1239840000000, 0.230190],[1239926400000, 0.230410],[1240012800000, 0.230070],[1240099200000, 0.230070],[1240185600000, 0.230070],[1240272000000, 0.230070],[1240358400000, 0.225780],[1240444800000, 0.226070],[1240531200000, 0.227910],[1240617600000, 0.230410],[1240704000000, 0.230410],[1240790400000, 0.230410],[1240876800000, 0.230610],[1240963200000, 0.229490],[1241049600000, 0.231590]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });