$(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: [[1246406400000,7.6405],[1246492800000,7.6395],[1246579200000,7.6384],[1246665600000,7.6377],[1246752000000,7.6377],[1246838400000,7.6377],[1246924800000,7.6377],[1247011200000,7.63],[1247097600000,7.6245],[1247184000000,7.6224],[1247270400000,7.6244],[1247356800000,7.6244],[1247443200000,7.6244],[1247529600000,7.6244],[1247616000000,7.6264],[1247702400000,7.6311],[1247788800000,7.6405],[1247875200000,7.6515],[1247961600000,7.6515],[1248048000000,7.6515],[1248134400000,7.6622],[1248220800000,7.6604],[1248307200000,7.6632],[1248393600000,7.663],[1248480000000,7.6661],[1248566400000,7.6661],[1248652800000,7.6661],[1248739200000,7.6915],[1248825600000,7.6901],[1248912000000,7.7],[1248998400000,7.698]], 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: [[1246406400000, 7.640500],[1246406400000, 7.640500],[1246492800000, 7.639500],[1246579200000, 7.638400],[1246665600000, 7.637700],[1246752000000, 7.637700],[1246838400000, 7.637700],[1246924800000, 7.637700],[1247011200000, 7.630000],[1247097600000, 7.624500],[1247184000000, 7.622400],[1247270400000, 7.624400],[1247356800000, 7.624400],[1247443200000, 7.624400],[1247529600000, 7.624400],[1247616000000, 7.626400],[1247702400000, 7.631100],[1247788800000, 7.640500],[1247875200000, 7.651500],[1247961600000, 7.651500],[1248048000000, 7.651500],[1248134400000, 7.662200],[1248220800000, 7.660400],[1248307200000, 7.663200],[1248393600000, 7.663000],[1248480000000, 7.666100],[1248566400000, 7.666100],[1248652800000, 7.666100],[1248739200000, 7.691500],[1248825600000, 7.690100],[1248912000000, 7.700000],[1248998400000, 7.698000]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });