OPEN_GRID API - v1.3.1
    Preparing search index...

    Interface ChartConfig

    grid.createChart(config)에 넘기는 공개 설정. 어떤 데이터를(source) 어떤 모양으로(type) 그릴지가 필수고, 나머지는 배치·엔진·꾸밈(제목/범례/축 등)을 위한 선택 옵션이다. / The public config passed to grid.createChart(config). Only which data (source) and what shape (type) to draw are required; the rest are optional placement/engine/decoration (title, legend, axis, etc.) settings.

    const chart = grid.createChart({
    source: { kind: 'all' },
    type: 'bar',
    category: 'region',
    series: ['sales'],
    placement: 'inline',
    mount: document.querySelector('#chart-host')!,
    });
    interface ChartConfig {
        aggregate?: ChartAggregate;
        axis?: {
            stacked?: boolean;
            xLabel?: string;
            yLabel?: string;
            yMax?: number;
            yMin?: number;
        };
        category?: string;
        engine?: ChartAdapter
        | "builtin"
        | "chartjs"
        | "echarts";
        legend?: boolean | { position: "left" | "right" | "top" | "bottom" };
        live?: boolean;
        maxPoints?: number;
        mount?: HTMLElement;
        numberFormat?: (
            v: number,
            ctx: { axis: "legend" | "x" | "y" | "tooltip"; field?: string },
        ) => string;
        palette?: string[];
        placement?: "docked" | "modal" | "inline" | "floating";
        series?: (string | ChartSeriesSpec)[];
        size?: { height: number; width: number };
        source: ChartSource;
        title?: string;
        tooltip?: boolean;
        type: ChartType;
    }
    Index

    Properties

    aggregate?: ChartAggregate

    카테고리 집계 연산. / Category aggregation op.

    axis?: {
        stacked?: boolean;
        xLabel?: string;
        yLabel?: string;
        yMax?: number;
        yMin?: number;
    }

    축 설정. / Axis config.

    category?: string

    카테고리(x축) 컬럼 field. / Category (x-axis) column field.

    engine?: ChartAdapter | "builtin" | "chartjs" | "echarts"

    렌더 엔진 또는 커스텀 어댑터. / Render engine or custom adapter.

    legend?: boolean | { position: "left" | "right" | "top" | "bottom" }

    범례 설정. / Legend config.

    live?: boolean

    데이터 변경 시 자동 갱신. / Auto-refresh on data changes.

    maxPoints?: number

    렌더 포인트 상한. / Max render points.

    mount?: HTMLElement

    inline/floating 시 마운트 대상. / Mount target for inline/floating.

    numberFormat?: (
        v: number,
        ctx: { axis: "legend" | "x" | "y" | "tooltip"; field?: string },
    ) => string

    숫자 포맷터. / Number formatter.

    palette?: string[]

    시리즈 팔레트. / Series palette.

    placement?: "docked" | "modal" | "inline" | "floating"

    배치 방식. / Placement.

    series?: (string | ChartSeriesSpec)[]

    시리즈 명세 목록. / Series specs.

    size?: { height: number; width: number }

    렌더 크기(px). / Render size (px).

    source: ChartSource

    데이터 소스. / Data source.

    title?: string

    차트 제목. / Chart title.

    tooltip?: boolean

    툴팁 사용 여부. / Whether tooltips are enabled.

    type: ChartType

    차트 타입. / Chart type.