$(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: 'Курс AZN, грн'}, 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: 'Курс AZN', data: [[1238544000000,9.59143],[1238630400000,9.59023],[1238716800000,9.59023],[1238803200000,9.59143],[1238889600000,9.59143],[1238976000000,9.59143],[1239062400000,9.59143],[1239148800000,9.59023],[1239235200000,9.58785],[1239321600000,9.58785],[1239408000000,9.58665],[1239494400000,9.58665],[1239580800000,9.58665],[1239667200000,9.58665],[1239753600000,9.58665],[1239840000000,9.58785],[1239926400000,9.58665],[1240012800000,9.58665],[1240099200000,9.58665],[1240185600000,9.58665],[1240272000000,9.58665],[1240358400000,9.58307],[1240444800000,9.58307],[1240531200000,9.58307],[1240617600000,9.58307],[1240704000000,9.58307],[1240790400000,9.58307],[1240876800000,9.58427],[1240963200000,9.58188],[1241049600000,9.58427]], 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, 9.591430],[1238544000000, 9.591430],[1238630400000, 9.590235],[1238716800000, 9.590235],[1238803200000, 9.591430],[1238889600000, 9.591430],[1238976000000, 9.591430],[1239062400000, 9.591430],[1239148800000, 9.590235],[1239235200000, 9.587847],[1239321600000, 9.587847],[1239408000000, 9.586653],[1239494400000, 9.586653],[1239580800000, 9.586653],[1239667200000, 9.586653],[1239753600000, 9.586653],[1239840000000, 9.587847],[1239926400000, 9.586653],[1240012800000, 9.586653],[1240099200000, 9.586653],[1240185600000, 9.586653],[1240272000000, 9.586653],[1240358400000, 9.583074],[1240444800000, 9.583074],[1240531200000, 9.583074],[1240617600000, 9.583074],[1240704000000, 9.583074],[1240790400000, 9.583074],[1240876800000, 9.584267],[1240963200000, 9.581882],[1241049600000, 9.584267]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });