Skip to content
Back to skills

Chart Config Generator

BSecurity

Map raw JSON datasets into ready-to-use chart configuration objects (Chart.js, Recharts, or ECharts).

  • 2 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 27, 2026
developmentjavascriptpythongojavabashnodeapifrontend

Works with

  • api

Security analysis

B84/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro shows the line behind each finding and how to fix it

Scanned September 27, 2026

npx -y skills add RMAzrim/opencode-artes --skill chart-config-generator --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Chart Config Generator?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Chart Config Generator
[![Security: B — Skills Directory](https://www.skillsdirectory.com/api/skills/rmazrim-chart-config-generator/badge)](https://www.skillsdirectory.com/skills/rmazrim-chart-config-generator)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: Chart Config Generator
description: Map raw JSON datasets into ready-to-use chart configuration objects (Chart.js, Recharts, or ECharts).
metadata:
  source: skills/chart-config-generator/chart-config-generator.md
---

# Chart Config Generator

## Prerequisites & Dependencies
- Node.js 18+ or Python 3.10+ 
- Mandatory packages (choose one):
  - JavaScript: `npm i chart.js`
  - Python: `pip install matplotlib seaborn plotly`
- A raw JSON dataset with numeric values and categorical labels

## Execution Steps
1. Load or define the raw JSON dataset: an array of objects with at least one numeric `value` field and one categorical `label`/`category` field
2. Determine the chart type based on the data shape:
   - Bar chart: compare categories
   - Line chart: show trends over time
   - Pie/Doughnut: show part-to-whole ratios
3. Map dataset fields to chart configuration:
   - X-axis: categorical label field
   - Y-axis: numeric value field
   - Tooltip/custom label: additional fields as needed
4. Generate the chart configuration object:
   - **Chart.js**: `{ type: 'bar', data: { labels: [...], datasets: [{ label: '...', data: [...] }] }, options: { ... } }`
   - **Recharts**: `<BarChart data={...}><Bar dataKey="value" name="..." /></BarChart>`
   - **ECharts**: `option: { xAxis: { data: [...] }, yAxis: { type: 'value' }, series: [{ name: '...', type: 'bar', data: [...] }] }`
5. Customize colors, legends, and responsive settings per the chosen library's API
6. Render the chart in your frontend or export as image/PDF using library-specific methods

```javascript
// Example: Chart.js configuration from raw JSON
const rawData = [
  { category: 'January', value: 65 },
  { category: 'February', value: 59 },
  { category: 'March', value: 80 },
  { category: 'April', value: 81 },
  { category: 'May', value: 56 },
];

const chartConfig = {
  type: 'bar',
  data: {
    labels: rawData.map(item => item.category),
    datasets: [{
      label: 'Sales',
      backgroundColor: 'rgba(54, 162, 235, 0.5)',
      borderColor: 'rgba(54, 162, 235, 1)',
      data: rawData.map(item => item.value),
    }],
  },
  options: {
    responsive: true,
    plugins: {
      legend: { position: 'bottom' },
      title: { display: true, text: 'Monthly Sales' },
    },
    scales: {
      y: { beginAtZero: true },
    },
  },
};

export default chartConfig;
```

```bash
# Render with Chart.js (HTML canvas)
const ctx = document.getElementById('myChart').getContext('2d');
new Chart(ctx, chartConfig);
```

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.