The waffle mark displays quantities using subdivided cells, making exact counts easier to read than bars.
Scanned 5/31/2026
Install via CLI
openskills install tools-only/X-Skills# Waffle Mark
The waffle mark displays quantities using subdivided cells, making exact counts easier to read than bars.
## Constructors
```javascript
Plot.waffleX(data, options) // Horizontal waffle (→)
Plot.waffleY(data, options) // Vertical waffle (↑)
```
## Channels
| Channel | Description |
|---------|-------------|
| `x` (waffleY) | Ordinal grouping |
| `y` (waffleY) | Quantitative value |
| `x` (waffleX) | Quantitative value |
| `y` (waffleX) | Ordinal grouping |
| `fill` | Cell color |
## Examples
### Basic Waffle Chart
```javascript
Plot.waffleY([212, 207, 315, 11], {
x: ["apples", "bananas", "oranges", "pears"]
}).plot({height: 420})
```
### Stacked Waffle
```javascript
Plot.waffleY(data, {
x: "category",
y: "value",
fill: "subcategory"
}).plot()
```
### Counting Items
```javascript
Plot.waffleY(data, Plot.groupX({y: "count"}, {
x: "category",
fill: "subcategory"
})).plot()
```
### Scaled Units
```javascript
Plot.waffleY(data, {
x: "country",
y: "population",
unit: 1000000, // Each cell = 1 million
fill: "country"
}).plot()
```
### Horizontal Waffle
```javascript
Plot.waffleX(data, {
y: "category",
x: "value"
}).plot()
```
### Custom Cell Layout
```javascript
Plot.waffleY(data, {
x: "category",
y: "value",
multiple: 10, // 10 cells per row
gap: 2
}).plot()
```
## Options
| Option | Default | Description |
|--------|---------|-------------|
| `unit` | 1 | Quantity each cell represents |
| `multiple` | auto | Cells per row/column |
| `gap` | 1 | Space between cells in pixels |
| `round` | false | Avoid partial cells |
| `fill` | currentColor | Cell color |
| `stroke` | none | Cell border |
## Round Options
- `false` - Allow partial cells (default)
- `true` - Round to nearest integer
- Function - Custom rounding (e.g., `Math.floor`, `Math.ceil`)
## Notes
- Rendered using SVG patterns for performance
- Ideal for counting discrete items (people, days, units)
- Supports fractional values via partial cells
- Implicit stack transform applies when using single value channel
- Better for exact quantity reading than bar charts
No comments yet. Be the first to comment!
Use this skill when developing or maintaining browser extension code in the `browser/` directory, including Chrome/Firefox/Edge compatibility, content scripts, background scripts, or i18n updates.
SEO optimization with keyword analysis, readability assessment, technical validation, content quality. Use for search rankings, blog posts, content audits, or encountering keyword density, readability scores, meta tags, schema markup errors.
Python backend development expertise for FastAPI, security patterns, database operations, Upstash integrations, and code quality. Use when: (1) Building REST APIs with FastAPI, (2) Implementing JWT/OAuth2 authentication, (3) Setting up SQLAlchemy/async databases, (4) Integrating Redis/Upstash caching, (5) Refactoring AI-generated Python code (deslopification), (6) Designing API patterns, or (7) Optimizing backend performance.
Drive the full internationalization journey for a project — detect the stack, recommend a library, set up the chosen library, wrap existing strings, and optionally connect a translation platform. Use when the user asks to add or configure i18n, internationalization, localization, multi-language support, or translations — including when they explicitly mention LinguiJS, Lingui, next-intl, "wrap strings", "find hardcoded text", "make my app translatable", or "set up translations". Triggers on g...
PTES-aligned adversarial security audit for backend, frontend, and mobile applications. Produces a CVSS-scored Hacker Report with verified PoCs and phased remediation.