Chart layout types
ChartOffset
Defines the blank space between the chart and the plot area. This space is occupied by supporting elements like axes, legends, and brushes.top- Distance from the top edge of the chart to the top edge of the plot areabottom- Distance from the bottom edge of the chart to the bottom edge of the plot area (distance, not a coordinate)left- Distance from the left edge of the chart to the left edge of the plot arearight- Distance from the right edge of the chart to the right edge of the plot area (distance, not a coordinate)
PlotArea
The area where the actual chart data is rendered (bars, lines, scatter points, etc.).width- The width of the plot area (same aschartWidth - offset.left - offset.right)height- The height of the plot area (same aschartHeight - offset.top - offset.bottom)x- The x coordinate of the top-left corner of the plot area (same asoffset.left)y- The y coordinate of the top-left corner of the plot area (same asoffset.top)
Coordinate types
Coordinate
Represents a point in 2D space with x and y coordinates.RectanglePosition
Margin
Layout types
CartesianLayout
horizontal- X-axis is horizontal, Y-axis is vertical (default for most charts)vertical- X-axis is vertical, Y-axis is horizontal
PolarLayout
Domain types
NumberDomain
Evaluated numerical domain with min and max values.CategoricalDomain
Array of all possible categorical values.Animation types
AnimationTiming
The type of easing function to use for animations.AnimationDuration
Specifies the duration of animation in milliseconds.Legend and symbol types
LegendType
SymbolType
Stack types
StackOffsetType
Determines how values are stacked.none- Default, adds values on top of each other. Negative values will overlap.expand- Values always add up to 1, chart looks like a rectanglewiggle- Tries to keep the chart centeredsilhouette- Tries to keep the chart centeredsign- Stacks positive values above zero and negative values below zeropositive- Ignores all negative values, then behaves likenone