
Product
Socket MCP Adds Org Alerts, Threat Feed Review, and Package Inspection
Socket MCP now lets AI assistants review org alerts, investigate threats using the Socket threat feed, and inspect package files in addition to dependency scoring.
Ultra-lightweight canvas-based charting library under 10kb.
npm install chartie
import { Chartie } from 'chartie';
const chart = new Chartie('canvas-id', {
type: 'bar',
data: {
labels: ['Jan', 'Feb', 'Mar', 'Apr'],
datasets: [{
label: 'Sales',
data: [12, 19, 3, 5],
backgroundColor: '#3b82f6'
}]
}
});
import { useEffect, useRef } from 'react';
import { Chartie } from 'chartie';
function Chart() {
const canvasRef = useRef(null);
useEffect(() => {
const chart = new Chartie(canvasRef.current, {
type: 'line',
data: {
labels: ['Mon', 'Tue', 'Wed', 'Thu'],
datasets: [{
label: 'Revenue',
data: [65, 59, 80, 81],
borderColor: '#ef4444',
fill: true
}]
}
});
return () => chart.destroy();
}, []);
return <canvas ref={canvasRef}></canvas>;
}
| Type | Description |
|---|---|
bar | Vertical bar chart |
line | Line chart with optional fill |
area | Filled line chart |
pie | Pie chart |
doughnut | Doughnut chart |
scatter | Scatter plot |
const config = {
type: 'line',
data: {
labels: ['Q1', 'Q2', 'Q3', 'Q4'],
datasets: [{
label: 'Revenue',
data: [100, 120, 115, 134],
borderColor: '#3b82f6',
backgroundColor: 'rgba(59, 130, 246, 0.1)',
fill: true
}]
},
options: {
legend: {
display: true
},
scales: {
y: {
display: true,
grid: { display: true }
}
}
}
};
Contributions are very welcome! We're still at the very beginning and would love your help to make Chartie even better.
Check out our GitHub repository to get started!
MIT
FAQs
Ultra-lightweight canvas-based charting library - Chart.js alternative under 10kb
We found that chartie demonstrated a healthy version release cadence and project activity because the last version was released less than 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.

Product
Socket MCP now lets AI assistants review org alerts, investigate threats using the Socket threat feed, and inspect package files in addition to dependency scoring.

Product
Socket Firewall blocks malicious VS Code and Open VSX extensions before install, protecting developers from compromised editor marketplaces.

Research
More than 140 Mastra npm packages were compromised in a supply chain attack that used a typosquatted dependency to deliver a cross-platform infostealer during installation.