Causality Analyzer
    Preparing search index...

    Module @agentix-e/causality-analyzer-visual

    @agentix-e/causality-analyzer-visual

    Lit 3 Web Components for causal graph and time series visualization — framework-agnostic, self-describing.

    npm

    @agentix-e/causality-analyzer-visual provides three Web Components for rendering causal analysis results. Built with Lit 3 and HTML Canvas / uPlot, they work in any framework (React, Vue, Svelte, vanilla JS) with zero framework lock-in.

    Component Renderer Purpose
    <ca-causal-graph> Canvas 2D DAG/PDAG with BFS layered layout
    <ca-time-series> uPlot Time series with anomaly region bands
    <ca-root-cause-ranking> DOM Ranked list with propagation paths
    npm install @agentix-e/causality-analyzer-visual
    
    <ca-causal-graph></ca-causal-graph>
    
    import '@agentix-e/causality-analyzer-visual';
    import { buildGraphVizData } from '@agentix-e/causality-analyzer-pipeline';

    const graphEl = document.querySelector('ca-causal-graph');
    const vizData = buildGraphVizData(nodes, edges, rootCauses, anomalousNodes);
    graphEl.data = vizData;
    <ca-time-series></ca-time-series>
    
    import { buildTimeseriesVizData } from '@agentix-e/causality-analyzer-pipeline';

    const chartEl = document.querySelector('ca-time-series');
    chartEl.data = buildTimeseriesVizData(metricData, timestamps, anomalousIndices, 'Memory');
    // Anomaly regions are automatically rendered as semi-transparent bands
    <ca-root-cause-ranking></ca-root-cause-ranking>
    
    import { buildRankingVizData } from '@agentix-e/causality-analyzer-pipeline';

    const rankingEl = document.querySelector('ca-root-cause-ranking');
    rankingEl.data = buildRankingVizData(rootCauses, paths);

    All components use CSS custom properties for theming:

    ca-causal-graph {
    --ca-text: #1e293b;
    --ca-anomaly: #dc2626;
    --ca-root-cause: #f59e0b;
    --ca-healthy: #22c55e;
    --ca-edge-weight: #94a3b8;
    }
    Property Type Description
    data GraphVisualizationData Nodes + edges for rendering
    renderer GraphRenderer Pluggable renderer (default: Canvas2D)
    Property Type Description
    data TimeSeriesChartData Series + anomaly regions
    Property Type Description
    data RCARankingData Root causes + propagation paths

    MIT

    CaCausalGraph
    Canvas2DRenderer
    CaRootCauseRanking
    CaTimeSeries
    GraphRenderer