Great! You're looking to introduce a ubiquitous term in a Domain-Driven Design (DDD) context for something that represents a dimension of data in charting, more abstract and general-purpose than "axis", and applicable across different types of charts (e.g., bar, line, radar, pie, etc.).
🔍 Problem Summary:
You want a single, consistent term that refers to what is typically mapped to axes in most charts but could also generalize to other visual encodings like color, size, angle, etc. This needs to be part of your domain model under the Charts bounded context.
✅ Suggested Term: ChartDimension
📌 Definition:
A ChartDimension is an abstract representation of a measurable or categorical aspect of data that defines how data values are positioned or encoded visually within a chart.
💡 Why "ChartDimension"?
- It's general enough to apply to all types of charts.
- It avoids tying the concept strictly to axes, which may not always exist (e.g., pie charts don't have X/Y axes).
- It aligns well with DDD principles by being a value object or entity depending on your modeling style.
- It can encapsulate properties like:
- Data field (what field it maps to)
- Scale type (linear, logarithmic, category, time, etc.)
- Visual encoding (position, color, size, shape, etc.)
- Orientation (if relevant – x, y, radial, etc.)
🧠 Alternative Terms (Less Preferred):
| Term | Pros | Cons |
|---|
| Axis | Familiar | Too tied to Cartesian charts |
| Encoding | From grammar-of-graphics | More about mapping than dimension |
| Channel | Used in visualization theory | Less intuitive for domain experts |
| Facet | Involves grouping | Not quite right fit |
| DataDimension | Clear | Too generic / not chart-specific |
📐 Example Use in Domain Model:
class ChartModel {
List<ChartDimension> Dimensions { get; }
}
class ChartDimension {
string Name { get; } // e.g., "X", "Y", "Angle", "Color"
string DataField { get; }
ScaleType Scale { get; }
EncodingType Encoding { get; } // position, color, size...
bool IsCategorical { get; }
}
This allows you to build any kind of chart based on how dimensions are defined and encoded.
🛠 Bonus: Relation to Grammar of Graphics
If you're familiar with the Grammar of Graphics, this concept aligns closely with the idea of "Aesthetic Mappings", but ChartDimension is a better fit for a business/domain language that may include non-developers or analysts.
✅ Conclusion
The best term from a DDD perspective in a charts bounded context is:
ChartDimension
It’s expressive, universal across chart types, and fits cleanly into a domain model.
Let me know if you'd like to go deeper into modeling this as an entity, value object, or aggregate root.