$(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: [[1338508800000,7.9925],[1338595200000,7.9925],[1338681600000,7.9925],[1338768000000,7.9925],[1338854400000,7.9925],[1338940800000,7.9925],[1339027200000,7.9925],[1339113600000,7.9925],[1339200000000,7.9925],[1339286400000,7.9925],[1339372800000,7.9925],[1339459200000,7.9925],[1339545600000,7.9925],[1339632000000,7.9925],[1339718400000,7.9925],[1339804800000,7.9925],[1339891200000,7.9925],[1339977600000,7.9925],[1340064000000,7.9925],[1340150400000,7.9925],[1340236800000,7.9925],[1340323200000,7.9925],[1340409600000,7.9925],[1340496000000,7.9925],[1340582400000,7.9925],[1340668800000,7.9925],[1340755200000,7.9925],[1340841600000,7.9925],[1340928000000,7.9925],[1341014400000,7.9925]], 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: [[1338508800000, 7.992500],[1338508800000, 7.992500],[1338595200000, 7.992500],[1338681600000, 7.992500],[1338768000000, 7.992500],[1338854400000, 7.992500],[1338940800000, 7.992500],[1339027200000, 7.992500],[1339113600000, 7.992500],[1339200000000, 7.992500],[1339286400000, 7.992500],[1339372800000, 7.992500],[1339459200000, 7.992500],[1339545600000, 7.992500],[1339632000000, 7.992500],[1339718400000, 7.992500],[1339804800000, 7.992500],[1339891200000, 7.992500],[1339977600000, 7.992500],[1340064000000, 7.992500],[1340150400000, 7.992500],[1340236800000, 7.992500],[1340323200000, 7.992500],[1340409600000, 7.992500],[1340496000000, 7.992500],[1340582400000, 7.992500],[1340668800000, 7.992500],[1340755200000, 7.992500],[1340841600000, 7.992500],[1340928000000, 7.992500],[1341014400000, 7.992500]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });