chartjs-1-use-responsive-containers

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

5 stars

Best use case

chartjs-1-use-responsive-containers is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

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

Teams using chartjs-1-use-responsive-containers 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/1-use-responsive-containers/SKILL.md --create-dirs "https://raw.githubusercontent.com/vamseeachanta/workspace-hub/main/.agents/skills/_archive/data/visualization/chartjs/1-use-responsive-containers/SKILL.md"

Manual Installation

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

How chartjs-1-use-responsive-containers Compares

Feature / Agentchartjs-1-use-responsive-containersStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

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

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

# 1. Use Responsive Containers (+3)

## 1. Use Responsive Containers

```html
<div style="position: relative; height: 400px; width: 100%;">
  <canvas id="myChart"></canvas>
</div>
```

```javascript
options: {
  responsive: true,
  maintainAspectRatio: false
}
```


## 2. Destroy Charts Before Recreating

```javascript
let myChart;

function createChart(data) {
  // Destroy existing chart
  if (myChart) {
    myChart.destroy();
  }

  const ctx = document.getElementById('myChart').getContext('2d');
  myChart = new Chart(ctx, {
    type: 'line',
    data: data
  });
}
```


## 3. Use Plugins for Extended Functionality

```javascript
// Example: Chart.js Data Labels Plugin
import ChartDataLabels from 'chartjs-plugin-datalabels';

const chart = new Chart(ctx, {
  plugins: [ChartDataLabels],
  data: {...},
  options: {
    plugins: {
      datalabels: {
        color: '#fff',
        display: true
      }
    }
  }
});
```


## 4. Optimize for Performance

```javascript
options: {
  // Disable animations for large datasets
  animation: {
    duration: 0
  },
  // Use decimation for large datasets
  parsing: false,
  normalized: true
}
```

Related Skills

echarts-1-use-responsive-design

5
from vamseeachanta/workspace-hub

Sub-skill of echarts: 1. Use Responsive Design (+3).

chartjs-with-react

5
from vamseeachanta/workspace-hub

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

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-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.