$(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: 'Курс USD, грн'}, 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: 'Курс USD', data: [[1341100800000,7.9925],[1341187200000,7.9925],[1341273600000,7.9925],[1341360000000,7.9925],[1341446400000,7.9925],[1341532800000,7.9925],[1341619200000,7.9925],[1341705600000,7.993],[1341792000000,7.993],[1341878400000,7.993],[1341964800000,7.993],[1342051200000,7.993],[1342137600000,7.993],[1342224000000,7.993],[1342310400000,7.993],[1342396800000,7.993],[1342483200000,7.993],[1342569600000,7.993],[1342656000000,7.993],[1342742400000,7.993],[1342828800000,7.993],[1342915200000,7.993],[1343001600000,7.993],[1343088000000,7.993],[1343174400000,7.993],[1343260800000,7.993],[1343347200000,7.993],[1343433600000,7.993],[1343520000000,7.993],[1343606400000,7.993],[1343692800000,7.993]], 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, 7.992500],[1341100800000, 7.992500],[1341187200000, 7.992500],[1341273600000, 7.992500],[1341360000000, 7.992500],[1341446400000, 7.992500],[1341532800000, 7.992500],[1341619200000, 7.992500],[1341705600000, 7.993000],[1341792000000, 7.993000],[1341878400000, 7.993000],[1341964800000, 7.993000],[1342051200000, 7.993000],[1342137600000, 7.993000],[1342224000000, 7.993000],[1342310400000, 7.993000],[1342396800000, 7.993000],[1342483200000, 7.993000],[1342569600000, 7.993000],[1342656000000, 7.993000],[1342742400000, 7.993000],[1342828800000, 7.993000],[1342915200000, 7.993000],[1343001600000, 7.993000],[1343088000000, 7.993000],[1343174400000, 7.993000],[1343260800000, 7.993000],[1343347200000, 7.993000],[1343433600000, 7.993000],[1343520000000, 7.993000],[1343606400000, 7.993000],[1343692800000, 7.993000]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });