$(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: 'Курс CHF, грн'}, 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: 'Курс CHF', data: [[1341100800000,8.30326],[1341187200000,8.30326],[1341273600000,8.37699],[1341360000000,8.36711],[1341446400000,8.35643],[1341532800000,8.26797],[1341619200000,8.23605],[1341705600000,8.23656],[1341792000000,8.23656],[1341878400000,8.18135],[1341964800000,8.17602],[1342051200000,8.15938],[1342137600000,8.10481],[1342224000000,8.11014],[1342310400000,8.11014],[1342396800000,8.11014],[1342483200000,8.10414],[1342569600000,8.17336],[1342656000000,8.14208],[1342742400000,8.17735],[1342828800000,8.12013],[1342915200000,8.12013],[1343001600000,8.12013],[1343088000000,8.05622],[1343174400000,8.04558],[1343260800000,8.07553],[1343347200000,8.15938],[1343433600000,8.19732],[1343520000000,8.19732],[1343606400000,8.19732],[1343692800000,8.15006]], 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, 8.303257],[1341100800000, 8.303257],[1341187200000, 8.303257],[1341273600000, 8.376991],[1341360000000, 8.367107],[1341446400000, 8.356431],[1341532800000, 8.267966],[1341619200000, 8.236048],[1341705600000, 8.236563],[1341792000000, 8.236563],[1341878400000, 8.181345],[1341964800000, 8.176020],[1342051200000, 8.159382],[1342137600000, 8.104809],[1342224000000, 8.110143],[1342310400000, 8.110143],[1342396800000, 8.110143],[1342483200000, 8.104143],[1342569600000, 8.173358],[1342656000000, 8.142078],[1342742400000, 8.177351],[1342828800000, 8.120127],[1342915200000, 8.120127],[1343001600000, 8.120127],[1343088000000, 8.056225],[1343174400000, 8.045577],[1343260800000, 8.075526],[1343347200000, 8.159382],[1343433600000, 8.197317],[1343520000000, 8.197317],[1343606400000, 8.197317],[1343692800000, 8.150065]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });