ProtectedariaProtected ReadonlycdrOptionalCenterOptionalCenterProtected ReadonlyCharte.g. 'bar' — the start of every log line this chart writes.
ReadonlyControllerProtectedformatterWidth ÷ height (e.g. 16 / 9); wins over Height. undefined/null is off; invalid values are logged and ignored, finite ones clamped to [0.25, 8].
ProtectedAspectProtectedFillsLets the host fill its parent (the frame measures that height); see Height. Needs no check, so it reads the raw binding.
A px height (minimum 120; clamped and logged), or 'fill' to take the parent's height. undefined/null (an unset binding) means 300 and is not a caller mistake.
ProtectedHeightundefined/null (an unset binding) means 0.7 and is not a caller mistake; numbers are clamped to [0, 0.85] and logged.
undefined/null (an unset binding) means false.
ProtectedCenterHow far the center label sits above, and the center value below, the center when both are shown. Scales with the line height (12 and 10 px at the 12px default) so the pair never overlaps at larger type.
ProtectedContexte.g. bar chart "Revenue" — prefixes every log line.
ProtectedEmitEmit the chart's click event for an activated point (mouse click, second touch tap, Enter/Space).
A callback method that performs custom clean-up, invoked immediately before a directive, pipe, or service instance is destroyed.
Donut (or pie, with InnerRadiusRatio 0) chart with an optional center label/value and percent labels drawn on the surface outside the ring.
Example