Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
chartjs-plugin-gradient
Advanced tools
Readme
Easy gradients for Chart.js
This plugin requires Chart.js 3.0.0 or later. It should also work with v2, but there are no regressing tests to guarantee this.
NOTE the plugin does not automatically register.
NPM:
npm i --save-dev chartjs-plugin-gradient
CDN:
<script src="https://cdn.jsdelivr.net/npm/chartjs-plugin-gradient"></script>
ESM
import gradient from 'chartjs-plugin-gradient';
CDN
const gradient = window['chartjs-plugin-gradient'];
All charts
Chart.register(gradient);
Signle chart
const chart = new Chart(ctx, {
// ...
plugins: {
gradient
}
});
The gradient colors are configured in the gradient
key of dataset
const chart = new Chart(ctx, {
data: {
datasets: [{
// data
gradient: {
backgroundColor: {
axis: 'y',
colors: {
0: 'red',
50: 'yellow',
100: 'green'
}
},
borderColor: {
axis: 'x',
colors: {
0: 'black',
1: 'white',
2: 'black',
3: 'white'
}
}
}
}]
}
});
chartjs-plugin-gradient.js
is available under the MIT license.
FAQs
Easy gradient colors for Chart.js
The npm package chartjs-plugin-gradient receives a total of 4,514 weekly downloads. As such, chartjs-plugin-gradient popularity was classified as popular.
We found that chartjs-plugin-gradient 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
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.