gauge.jsJavaScript 動(dòng)畫(huà)儀表板
gauge.js 是一個(gè) 100% 原生且看起來(lái)很酷的動(dòng)畫(huà) JavaScript/CoffeScript 儀表板。
- 沒(méi)有圖像,沒(méi)有外部 CSS - 純畫(huà)布
- 無(wú)依賴(lài)
- 高度可配置
- 分辨率無(wú)關(guān)
- 動(dòng)畫(huà)儀表值變化
- 適用于所有主要瀏覽器
var opts = {
angle: 0.15, /// The span of the gauge arc
lineWidth: 0.44, // The line thickness
pointer: {
length: 0.9, // Relative to gauge radius
strokeWidth: 0.035 // The thickness
},
colorStart: '#6FADCF', // Colors
colorStop: '#8FC0DA', // just experiment with them
strokeColor: '#E0E0E0' // to see which ones work best for you
};
var target = document.getElementById('foo'); // your canvas element
var gauge = new Gauge(target).setOptions(opts); // create sexy gauge!
gauge.maxValue = 3000; // set max gauge value
gauge.setMinValue(0); // set min value
gauge.set(1250); // set actual value評(píng)論
圖片
表情
