chartjs-advanced
SKILL.md
Chart.js Advanced Techniques (v4.5.1)
Guide to advanced Chart.js customization including gradients, custom chart types, and programmatic control.
Gradients
Create visual depth with linear and radial gradients.
Linear Gradients
const ctx = document.getElementById('myChart').getContext('2d');
// Create gradient
const gradient = ctx.createLinearGradient(0, 0, 0, 400);
gradient.addColorStop(0, 'rgba(75, 192, 192, 1)');
gradient.addColorStop(0.5, 'rgba(75, 192, 192, 0.5)');
gradient.addColorStop(1, 'rgba(75, 192, 192, 0.1)');