Skip to content

Orientation & roles ​

When orientation is horizontal, Chartbuddy remaps axis roles:

OrientationDomainPrimary rangeSecondary range
verticalbottomleftright
horizontalleftbottomtop
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 (bottom when horizontal)
  • Category fit / dates → domain side (left when horizontal)
  • Dual-axis binding → secondary side (top when horizontal)

Deep merge keeps per-role settings (labels, breaks, titles) while sides move – see Defaults & merging.

More: Orientation (concepts) · Axes overview · Secondary

Developer documentation for Chartbuddy Embed · Not the end-user Help Center · Help Center