eurostat-map
    Preparing search index...

    Interface TrivariateLegendConfig

    interface TrivariateLegendConfig {
        width?: number;
        height?: number;
        padding?: { top: number; right: number; bottom: number; left: number };
        type?: "discrete" | "continuous";
        showCenter?: boolean;
        centerLabel?: string;
        showLines?: boolean;
        minorSubdivisions?: number;
        labels?: [string, string, string];
        labelPosition?: "corner" | "edge";
        colorTarget?: "triangles" | "points";
        showData?: boolean;
        centerAnnotationOffsets?: {
            labelX: number;
            labelY: number;
            curveX: number;
            curveY: number;
        };
        title?: string;
        subtitle?: string;
    }
    Index

    Properties

    width?: number

    Width of the legend in pixels.

    160
    
    height?: number

    Height of the legend in pixels.

    160
    
    padding?: { top: number; right: number; bottom: number; left: number }

    Padding around the ternary plot.

    { top: 50, right: 50, bottom: 10, left: 50 }
    
    type?: "discrete" | "continuous"

    Plot type.

    'continuous'
    
    showCenter?: boolean

    Whether to show the center point and guide lines.

    true
    
    centerLabel?: string

    Label for the center annotation.

    'Average'
    
    showLines?: boolean

    Whether to show grid lines.

    false
    
    minorSubdivisions?: number

    Number of minor grid subdivisions between major grid lines.

    5
    
    labels?: [string, string, string]

    Axis corner labels.

    ['Variable 1', 'Variable 2', 'Variable 3']
    
    labelPosition?: "corner" | "edge"

    Position of axis labels.

    'edge'
    
    colorTarget?: "triangles" | "points"

    Whether colour is applied to triangles or data points.

    'points'
    
    showData?: boolean

    Whether to render data points.

    true
    
    centerAnnotationOffsets?: {
        labelX: number;
        labelY: number;
        curveX: number;
        curveY: number;
    }

    Offsets for the center annotation label and curve.

    title?: string

    Legend title.

    subtitle?: string

    Legend subtitle.