Class BOBSunburstChart<TY>
- Namespace
- BlazOrbit.Charts.Components
- Assembly
- BlazOrbit.Charts.dll
Radial variant of BOBTreemapChart<TY>. Hierarchical nodes render as concentric arcs - innermost ring for root nodes, outer rings for their descendants. Shares BOBChartTreemapNode<TY> with the treemap so consumers can swap representations without rebuilding their dataset.
public sealed class BOBSunburstChart<TY> : BOBChartBase<object, TY>, IDataVisualizationFamilyComponent
Type Parameters
TYNumeric type of the node values.
- Inheritance
-
objectComponentBaseBOBChartBase<object, TY>BOBSunburstChart<TY>
- Implements
- Inherited Members
Constructors
BOBSunburstChart()
public BOBSunburstChart()
Properties
InnerRadius
Inner-radius / outer-radius ratio in [0, 0.9]. 0 leaves a solid center,
0.2 hollows a small donut hole. Default 0.
[Parameter]
public double InnerRadius { get; set; }
Property Value
- double
MinLabelArc
Minimum arc angle (degrees) below which the label is skipped. Tiny wedges hide their labels to avoid clutter. Default 12°.
[Parameter]
public double MinLabelArc { get; set; }
Property Value
- double
Nodes
Hierarchical dataset rendered as concentric arcs.
[Parameter]
public IEnumerable<BOBChartTreemapNode<TY>>? Nodes { get; set; }
Property Value
- IEnumerable<BOBChartTreemapNode<TY>>
OnNodeClick
Fired when the user clicks any arc (leaf or branch). Carries the node, its root-to-self path and its depth in the tree.
[Parameter]
public EventCallback<BOBChartTreemapClickArgs<TY>> OnNodeClick { get; set; }
Property Value
- EventCallback<BOBChartTreemapClickArgs<TY>>
Padding
Pixel padding around the chart so labels and outer rings don't bump against the viewport edge. Default 12.
[Parameter]
public double Padding { get; set; }
Property Value
- double
Methods
BuildAriaLabel()
Default ARIA label for the chart's <svg> root. Subclasses
override to inject series / value summaries (improves screen-reader
experience).
protected override string BuildAriaLabel()
Returns
- string
RenderSvg(RenderTreeBuilder)
Concrete charts override this to emit SVG content. The supplied
builder is positioned inside the <svg> root, so
implementations only need to add geometry primitives (lines, paths,
rects, text). Sequence numbers must remain unique within the override.
protected override void RenderSvg(RenderTreeBuilder builder)
Parameters
builderRenderTreeBuilderRender tree builder positioned inside the SVG root.