Member Junction
    Preparing search index...

    Bar chart: horizontal or vertical, grouped or stacked (negatives stack away from zero). Colors come from Color tokens or var(--mj-viz-N).

    <mj-bar-chart AriaLabel="Score bands by model" [Categories]="models" [Series]="bands"
    Orientation="horizontal" [Stacked]="true" (SegmentClick)="open($event)"></mj-bar-chart>

    Hierarchy

    • MJBaseChartComponent<BarGeometry>
      • MJBarChartComponent
    Index

    Constructors

    Properties

    ariaLabel: string = ''
    cdr: ChangeDetectorRef = ...
    ChartKind: "bar" = 'bar'

    e.g. 'bar' — the start of every log line this chart writes.

    Controller: ChartController<BarGeometry> = ...
    EmptyMessage: string = 'No data'
    formatter: ChartValueFormatter = DefaultValueFormatter
    SegmentClick: EventEmitter<ChartPointEvent> = ...
    ShowLegend: boolean = true
    ShowTooltip: boolean = true

    Accessors

    • get AspectRatio(): number | null

      Returns number | null

    • set AspectRatio(value: number | null | undefined): void

      Width ÷ 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].

      Parameters

      • value: number | null | undefined

      Returns void

    • get FillsParent(): boolean

      Lets the host fill its parent (the frame measures that height); see Height. Needs no check, so it reads the raw binding.

      Returns boolean

    • get Height(): number | "fill"

      Returns number | "fill"

    • set Height(value: number | "fill" | null | undefined): void

      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.

      Parameters

      • value: number | "fill" | null | undefined

      Returns void

    • get TooltipPlacementValue(): TooltipPlacement

      Horizontal bars are stacked rows: a tooltip above the anchor would cover the row above and be unreachable by mouse.

      Returns TooltipPlacement

    Methods

    • Emit the chart's click event for an activated point (mouse click, second touch tap, Enter/Space).

      Parameters

      • point: ActivePoint

      Returns void

    • A callback method that performs custom clean-up, invoked immediately before a directive, pipe, or service instance is destroyed.

      Returns void