chartjs-1-use-responsive-containers
Sub-skill of chartjs: 1. Use Responsive Containers (+3).
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
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/1-use-responsive-containers/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How chartjs-1-use-responsive-containers Compares
| Feature / Agent | chartjs-1-use-responsive-containers | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/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
Sub-skill of echarts: 1. Use Responsive Design (+3).
chartjs-with-react
Sub-skill of chartjs: With React (+1).
chartjs-example-1-multi-dataset-line-chart
Sub-skill of chartjs: Example 1: Multi-Dataset Line Chart (+5).
chartjs-custom-colors
Sub-skill of chartjs: Custom Colors (+2).
chartjs-chartjs-zoom-plugin
Sub-skill of chartjs: Chart.js Zoom Plugin (+2).
chartjs-cdn-quick-start
Sub-skill of chartjs: CDN (Quick Start) (+2).
chartjs-available-chart-types
Sub-skill of chartjs: Available Chart Types.
chartjs-1-basic-line-chart
Sub-skill of chartjs: 1. Basic Line Chart (+2).
test-oversized-skill
A test fixture skill that exceeds 200 lines with multiple H2/H3 sections for split testing.
interactive-report-generator
Generate interactive HTML reports with Plotly visualizations from data analysis results. Supports dashboards, charts, and professional styling.
data-validation-reporter
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
Generate standardized .agent-os directory structure with product documentation, mission, tech-stack, roadmap, and decision records. Enables AI-native workflows.