$(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: [[1341100800000,10.1725],[1341187200000,10.1725],[1341273600000,10.1738],[1341360000000,10.1738],[1341446400000,10.1738],[1341532800000,10.1738],[1341619200000,10.1738],[1341705600000,10.1744],[1341792000000,10.1744],[1341878400000,10.1744],[1341964800000,10.1744],[1342051200000,10.1757],[1342137600000,10.1757],[1342224000000,10.1757],[1342310400000,10.1757],[1342396800000,10.1757],[1342483200000,10.1757],[1342569600000,10.1731],[1342656000000,10.1731],[1342742400000,10.1718],[1342828800000,10.1731],[1342915200000,10.1731],[1343001600000,10.1731],[1343088000000,10.1731],[1343174400000,10.1744],[1343260800000,10.1744],[1343347200000,10.1744],[1343433600000,10.1744],[1343520000000,10.1744],[1343606400000,10.1744],[1343692800000,10.1744]], 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: [[1341100800000, 10.172458],[1341100800000, 10.172458],[1341187200000, 10.172458],[1341273600000, 10.173753],[1341360000000, 10.173753],[1341446400000, 10.173753],[1341532800000, 10.173753],[1341619200000, 10.173753],[1341705600000, 10.174389],[1341792000000, 10.174389],[1341878400000, 10.174389],[1341964800000, 10.174389],[1342051200000, 10.175684],[1342137600000, 10.175684],[1342224000000, 10.175684],[1342310400000, 10.175684],[1342396800000, 10.175684],[1342483200000, 10.175684],[1342569600000, 10.173094],[1342656000000, 10.173094],[1342742400000, 10.171799],[1342828800000, 10.173094],[1342915200000, 10.173094],[1343001600000, 10.173094],[1343088000000, 10.173094],[1343174400000, 10.174389],[1343260800000, 10.174389],[1343347200000, 10.174389],[1343433600000, 10.174389],[1343520000000, 10.174389],[1343606400000, 10.174389],[1343692800000, 10.174389]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });