chartjs-with-react

Sub-skill of chartjs: With React (+1).

5 stars

Best use case

chartjs-with-react is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

Sub-skill of chartjs: With React (+1).

Teams using chartjs-with-react should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/with-react/SKILL.md --create-dirs "https://raw.githubusercontent.com/vamseeachanta/workspace-hub/main/.agents/skills/_archive/data/visualization/chartjs/with-react/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/with-react/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How chartjs-with-react Compares

Feature / Agentchartjs-with-reactStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

Sub-skill of chartjs: With React (+1).

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

SKILL.md Source

# With React (+1)

## With React

```javascript
import { useEffect, useRef } from 'react';
import Chart from 'chart.js/auto';

function ChartComponent({ data }) {
  const chartRef = useRef(null);
  const chartInstance = useRef(null);

  useEffect(() => {
    if (chartInstance.current) {
      chartInstance.current.destroy();
    }

    const ctx = chartRef.current.getContext('2d');
    chartInstance.current = new Chart(ctx, {
      type: 'line',
      data: data,
      options: { responsive: true }
    });

    return () => {
      if (chartInstance.current) {
        chartInstance.current.destroy();
      }
    };
  }, [data]);

  return <canvas ref={chartRef} />;
}
```


## With Vue

```vue
<template>
  <canvas ref="chartCanvas"></canvas>
</template>

<script>
import Chart from 'chart.js/auto';

export default {
  props: ['chartData'],
  mounted() {
    this.renderChart();
  },
  methods: {
    renderChart() {
      const ctx = this.$refs.chartCanvas.getContext('2d');
      new Chart(ctx, {
        type: 'bar',
        data: this.chartData,
        options: { responsive: true }
      });
    }
  }
};
</script>
```

Related Skills

docusaurus-5-mdx-and-react-components

5
from vamseeachanta/workspace-hub

Sub-skill of docusaurus: 5. MDX and React Components.

chartjs-example-1-multi-dataset-line-chart

5
from vamseeachanta/workspace-hub

Sub-skill of chartjs: Example 1: Multi-Dataset Line Chart (+5).

chartjs-custom-colors

5
from vamseeachanta/workspace-hub

Sub-skill of chartjs: Custom Colors (+2).

chartjs-chartjs-zoom-plugin

5
from vamseeachanta/workspace-hub

Sub-skill of chartjs: Chart.js Zoom Plugin (+2).

chartjs-cdn-quick-start

5
from vamseeachanta/workspace-hub

Sub-skill of chartjs: CDN (Quick Start) (+2).

chartjs-available-chart-types

5
from vamseeachanta/workspace-hub

Sub-skill of chartjs: Available Chart Types.

chartjs-1-use-responsive-containers

5
from vamseeachanta/workspace-hub

Sub-skill of chartjs: 1. Use Responsive Containers (+3).

chartjs-1-basic-line-chart

5
from vamseeachanta/workspace-hub

Sub-skill of chartjs: 1. Basic Line Chart (+2).

test-oversized-skill

5
from vamseeachanta/workspace-hub

A test fixture skill that exceeds 200 lines with multiple H2/H3 sections for split testing.

interactive-report-generator

5
from vamseeachanta/workspace-hub

Generate interactive HTML reports with Plotly visualizations from data analysis results. Supports dashboards, charts, and professional styling.

data-validation-reporter

5
from vamseeachanta/workspace-hub

Generate interactive validation reports with quality scoring, missing data analysis, and type checking. Combines Pandas validation, Plotly visualization, and YAML configuration for comprehensive data quality reporting.

agent-os-framework

5
from vamseeachanta/workspace-hub

Generate standardized .agent-os directory structure with product documentation, mission, tech-stack, roadmap, and decision records. Enables AI-native workflows.