mirror of
				https://github.com/jumpserver/jumpserver.git
				synced 2025-11-04 07:55:39 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			34 lines
		
	
	
		
			764 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			34 lines
		
	
	
		
			764 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
$(function() {
 | 
						|
    $("span.pie").peity("pie", {
 | 
						|
        fill: ['#1ab394', '#d7d7d7', '#ffffff']
 | 
						|
    })
 | 
						|
 | 
						|
    $(".line").peity("line",{
 | 
						|
        fill: '#1ab394',
 | 
						|
        stroke:'#169c81',
 | 
						|
    })
 | 
						|
 | 
						|
    $(".bar").peity("bar", {
 | 
						|
        fill: ["#1ab394", "#d7d7d7"]
 | 
						|
    })
 | 
						|
 | 
						|
    $(".bar_dashboard").peity("bar", {
 | 
						|
        fill: ["#1ab394", "#d7d7d7"],
 | 
						|
        width:100
 | 
						|
    })
 | 
						|
 | 
						|
    var updatingChart = $(".updating-chart").peity("line", { fill: '#1ab394',stroke:'#169c81', width: 64 })
 | 
						|
 | 
						|
    setInterval(function() {
 | 
						|
        var random = Math.round(Math.random() * 10)
 | 
						|
        var values = updatingChart.text().split(",")
 | 
						|
        values.shift()
 | 
						|
        values.push(random)
 | 
						|
 | 
						|
        updatingChart
 | 
						|
            .text(values.join(","))
 | 
						|
            .change()
 | 
						|
    }, 1000);
 | 
						|
 | 
						|
});
 |