Class BOBFunnelChart<TY>
- Namespace
- BlazOrbit.Charts.Components
- Assembly
- BlazOrbit.Charts.dll
Funnel chart - visualizes a multi-stage drop-off pipeline. Each step's row width auto-scales to the largest value in the funnel; the row height is uniform. Useful for sales pipelines, ad attribution funnels and onboarding completion analyses.
public sealed class BOBFunnelChart<TY> : BOBChartBase<int, TY>, IDataVisualizationFamilyComponent where TY : struct
Type Parameters
TYNumeric value type for each step.
- Inheritance
-
objectComponentBaseBOBChartBase<int, TY>BOBFunnelChart<TY>
- Implements
- Inherited Members
Constructors
BOBFunnelChart()
public BOBFunnelChart()
Properties
OnStepClick
Fired when the user clicks a funnel row.
[Parameter]
public EventCallback<BOBChartFunnelStep<TY>> OnStepClick { get; set; }
Property Value
- EventCallback<BOBChartFunnelStep<TY>>
RowGap
Pixel gap between consecutive rows. Default 2.
[Parameter]
public double RowGap { get; set; }
Property Value
- double
ShowValues
Show the per-step value (and optional drop-off %) inside each row.
Default true.
[Parameter]
public bool ShowValues { get; set; }
Property Value
- bool
Steps
Funnel stages, in top-to-bottom order.
[Parameter]
public IEnumerable<BOBChartFunnelStep<TY>>? Steps { get; set; }
Property Value
- IEnumerable<BOBChartFunnelStep<TY>>
Tapered
When true (default) the rows render as trapezoids that taper
down (classic funnel). Set to false for a horizontal-bar
look with rectangular rows.
[Parameter]
public bool Tapered { get; set; }
Property Value
- bool
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.