/jwebmp-chartjs:jwebmp-chartjsfrom jwebmp-chartjs
Build responsive Chart.js charts in JWebMP using Java. Supports line, bar, pie, doughnut, radar, scatter, bubble, and polar area charts with animations and plugins.
Ships in jwebmp-chartjs. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Chart.js integration for JWebMP providing simple yet flexible charting.
ChartJS lineChart = new ChartJS()
.setType(ChartType.LINE)
.setData(new ChartData()
.setLabels(List.of("Jan", "Feb", "Mar", "Apr", "May", "Jun"))
.setDatasets(List.of(
new Dataset()
.setLabel("Sales 2024")
.setData(List.of(12, 19, 3, 5, 2, 3))
.setBorderColor("rgb(75, 192, 192)")
.setTension(0.1)
)))
.setOptions(new ChartOptions()
.setResponsive(true)
.setMaintainAspectRatio(true));
ChartJS barChart = new ChartJS()
.setType(ChartType.BAR)
.setData(new ChartData()
.setLabels(List.of("Red", "Blue", "Yellow", "Green", "Purple", "Orange"))
.setDatasets(List.of(
new Dataset()
.setLabel("# of Votes")
.setData(List.of(12, 19, 3, 5, 2, 3))
.setBackgroundColor(List.of(
"rgba(255, 99, 132, 0.2)",
"rgba(54, 162, 235, 0.2)",
"rgba(255, 206, 86, 0.2)",
"rgba(75, 192, 192, 0.2)",
"rgba(153, 102, 255, 0.2)",
"rgba(255, 159, 64, 0.2)"
))
.setBorderWidth(1)
)));
ChartJS pieChart = new ChartJS()
.setType(ChartType.PIE) // or ChartType.DOUGHNUT
.setData(new ChartData()
.setLabels(List.of("Red", "Blue", "Yellow"))
.setDatasets(List.of(
new Dataset()
.setData(List.of(300, 50, 100))
.setBackgroundColor(List.of(
"rgb(255, 99, 132)",
"rgb(54, 162, 235)",
"rgb(255, 205, 86)"
))
)));
ChartType.LINE // Line chart
ChartType.BAR // Vertical bar chart
ChartType.HORIZONTAL_BAR // Horizontal bar chart
ChartType.RADAR // Radar/spider chart
ChartType.DOUGHNUT // Doughnut chart
ChartType.PIE // Pie chart
ChartType.POLAR_AREA // Polar area chart
ChartType.BUBBLE // Bubble chart
ChartType.SCATTER // Scatter plot
new ChartOptions()
.setResponsive(true)
.setMaintainAspectRatio(true)
.setAspectRatio(2)
.setPlugins(new PluginsOptions()
.setTitle(new TitleOptions()
.setDisplay(true)
.setText("Chart Title"))
.setLegend(new LegendOptions()
.setDisplay(true)
.setPosition("top")))
.setScales(new ScalesOptions()
.setX(new ScaleOptions().setDisplay(true))
.setY(new ScaleOptions()
.setDisplay(true)
.setBeginAtZero(true)));
new Dataset()
.setLabel("Dataset 1")
.setData(dataPoints)
.setBackgroundColor("rgba(75, 192, 192, 0.2)")
.setBorderColor("rgb(75, 192, 192)")
.setBorderWidth(2)
.setPointRadius(5)
.setPointHoverRadius(7)
.setTension(0.4) // Line tension (0 = straight, 1 = curved)
.setFill(true); // Fill area under line
new ChartData()
.setDatasets(List.of(
new Dataset()
.setType(ChartType.LINE)
.setLabel("Line Dataset")
.setData(List.of(10, 20, 30)),
new Dataset()
.setType(ChartType.BAR)
.setLabel("Bar Dataset")
.setData(List.of(15, 25, 35))
));
new ChartOptions()
.setAnimation(new AnimationOptions()
.setDuration(1000)
.setEasing("easeInOutQuart")
.setDelay(0));
<dependency>
<groupId>com.jwebmp.plugins</groupId>
<artifactId>chartjs</artifactId>
</dependency>
com.jwebmp.plugins.chartjsWhat SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub guicedee/ai-rules --plugin jwebmp-chartjs