Agent skill
treemap-chart
Configure treemap charts in drizzle-cube dashboards for hierarchical data visualization. Use when creating treemaps, hierarchical visualizations, or nested proportions.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/data/treemap-chart
SKILL.md
Treemap Chart Configuration
Configure treemap charts for drizzle-cube dashboards. Treemaps display hierarchical data as nested rectangles, where size represents a metric.
Chart Type
chartType: 'treemap'
Basic Configuration
{
id: 'treemap-1',
title: 'Revenue by Category',
query: JSON.stringify({
dimensions: ['Products.category'],
measures: ['Sales.totalRevenue']
}),
chartType: 'treemap',
chartConfig: {
xAxis: ['Products.category'],
yAxis: ['Sales.totalRevenue']
},
x: 0, y: 0, w: 8, h: 6
}
Chart Configuration (chartConfig)
xAxis (Categories/Hierarchy)
- Type:
string[] - Required: Yes
- Purpose: Dimensions for hierarchical grouping (use multiple for nested hierarchy)
- Example:
['Products.category']or['Products.category', 'Products.subcategory']
series (Optional - Color Grouping)
- Type:
string[] - Purpose: Optional dimension for color-coding groups
- Example:
['Products.region']
yAxis (Size)
- Type:
string[] - Purpose: Measure determining rectangle size
- Example:
['Sales.revenue']
Examples
Sales by Category
{
id: 'sales-treemap',
title: 'Sales Distribution',
query: JSON.stringify({
dimensions: ['Products.category', 'Products.subcategory'],
measures: ['Sales.totalRevenue']
}),
chartType: 'treemap',
chartConfig: {
xAxis: ['Products.category', 'Products.subcategory'],
yAxis: ['Sales.totalRevenue']
},
x: 0, y: 0, w: 12, h: 7
}
Use Cases
- Hierarchical Proportions: Show nested categories
- Disk Space Usage: Visualize file/folder sizes
- Budget Allocation: Display spending hierarchy
- Market Composition: Show market segments
Related Skills
- Use
pie-chartfor flat proportions - Use
bar-chartfor hierarchical comparisons
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?