$(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: [[1267401600000,9.94523],[1267488000000,9.94523],[1267574400000,9.93901],[1267660800000,9.939],[1267747200000,9.93925],[1267833600000,9.93752],[1267920000000,9.93752],[1268006400000,9.93752],[1268092800000,9.93752],[1268179200000,9.93777],[1268265600000,9.93577],[1268352000000,9.93328],[1268438400000,9.93153],[1268524800000,9.93153],[1268611200000,9.93153],[1268697600000,9.92991],[1268784000000,9.92991],[1268870400000,9.92904],[1268956800000,9.92904],[1269043200000,9.90937],[1269129600000,9.90937],[1269216000000,9.90937],[1269302400000,9.90215],[1269388800000,9.8968],[1269475200000,9.878],[1269561600000,9.87302],[1269648000000,9.87178],[1269734400000,9.87178],[1269820800000,9.87178],[1269907200000,9.86556],[1269993600000,9.86678]], 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: [[1267401600000, 9.945233],[1267401600000, 9.945233],[1267488000000, 9.945233],[1267574400000, 9.939009],[1267660800000, 9.939002],[1267747200000, 9.939251],[1267833600000, 9.937516],[1267920000000, 9.937516],[1268006400000, 9.937516],[1268092800000, 9.937516],[1268179200000, 9.937765],[1268265600000, 9.935773],[1268352000000, 9.933284],[1268438400000, 9.931532],[1268524800000, 9.931532],[1268611200000, 9.931532],[1268697600000, 9.929914],[1268784000000, 9.929914],[1268870400000, 9.929043],[1268956800000, 9.929043],[1269043200000, 9.909374],[1269129600000, 9.909374],[1269216000000, 9.909374],[1269302400000, 9.902154],[1269388800000, 9.896801],[1269475200000, 9.878003],[1269561600000, 9.873024],[1269648000000, 9.871779],[1269734400000, 9.871779],[1269820800000, 9.871779],[1269907200000, 9.865555],[1269993600000, 9.866783]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });