
Security News
Vite Releases Technical Preview of Rolldown-Vite, a Rust-Based Bundler
Vite releases Rolldown-Vite, a Rust-based bundler preview offering faster builds and lower memory usage as a drop-in replacement for Vite.
react-coffee-gauge
Advanced tools
Created React installation for Gauge Coffee
Run
npm install react-coffee-gauge
import ReactCoffeeGauge from 'react-coffee-gauge';
function App() {
var gauge_opts = {
angle: 0, // The span of the gauge arc
radiusScale: 1, // Relative radius
pointer: {
length: 0.5, // // Relative to gauge radius
strokeWidth: 0.024, // The thickness
color: '#000000' // Fill color
},
renderTicks: {
divisions: 5,
divWidth: 0.8,
divLength: 0.7,
divColor: '#333333',
subDivisions: 3,
subLength: 0.5,
subWidth: 0.6,
subColor: '#666666'
},
lineWidth: 0.15,
limitMax: false, // If false, max value increases automatically if value > maxValue
limitMin: false, // If true, the min value of the gauge will be fixed
colorStart: '#6FADCF', // Colors
colorStop: '#8FC0DA', // just experiment with them
strokeColor: [[0.0, "#a9d70b" ], [0.50, "#f9c802"], [1.0, "#ff0000"]], // to see which ones work best for you
generateGradient: true,
highDpiSupport: true, // High resolution support
staticZones: [
{strokeStyle: "#F03E3E", min: 0, max: 200}, // Red from 100 to 130
{strokeStyle: "#30B32D", min: 200, max: 900}, // Green
{strokeStyle: "#FFDD00", min: 900, max: 1000}, // Yellow
]
};
return (
<div className="App">
<ReactCoffeeGauge
min="0"
max="1000"
value="600"
opts={gauge_opts}
/>
</div>
);
}
export default App;
FAQs
Javascript Coffee Gauge
The npm package react-coffee-gauge receives a total of 1,567 weekly downloads. As such, react-coffee-gauge popularity was classified as popular.
We found that react-coffee-gauge demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Vite releases Rolldown-Vite, a Rust-based bundler preview offering faster builds and lower memory usage as a drop-in replacement for Vite.
Research
Security News
A malicious npm typosquat uses remote commands to silently delete entire project directories after a single mistyped install.
Research
Security News
Malicious PyPI package semantic-types steals Solana private keys via transitive dependency installs using monkey patching and blockchain exfiltration.