Appearance
Orientation & roles
When orientation is horizontal, Chartbuddy remaps axis roles:
| Orientation | Domain | Primary range | Secondary range |
|---|---|---|---|
vertical | bottom | left | right |
horizontal | left | bottom | top |
js
{
orientation: 'horizontal', // or 'vertical'
}Pass orientation and let the embed remap. Hand-editing sides to “fake” horizontal without remap produces wrong ticks (classic “0, 1, 2, 3, 4” category bug on the value axis).
What to author after a flip
- Value formats, bounds, preferred intervals, value gridlines → primary range side (
bottomwhen horizontal) - Category fit / dates → domain side (
leftwhen horizontal) - Dual-axis binding → secondary side (
topwhen horizontal)
Deep merge keeps per-role settings (labels, breaks, titles) while sides move – see Defaults & merging.
More: Orientation (concepts) · Axes overview · Secondary