Kottster Packages API Reference
    Preparing search index...

    Interface DashboardPageConfigAreaChartCard

    interface DashboardPageConfigAreaChartCard {
        customDataFetcher?: (
            input: DashboardPageGetCardDataInput,
        ) => Promise<DashboardPageGetCardDataResult>;
        dataKeyAlias: string;
        dataSource?: string;
        fetchStrategy: "rawSqlQuery" | "customFetch";
        infoTooltipText?: string;
        key: string;
        span?: string;
        sqlQuery: string;
        stacked?: boolean;
        title: string;
        type: "areaChart";
        valuePrefix?: string;
        values: DashboardPageConfigChartValue[];
        valueSuffix?: string;
        withDots?: boolean;
    }

    Hierarchy

    Index

    Properties

    customDataFetcher?: (
        input: DashboardPageGetCardDataInput,
    ) => Promise<DashboardPageGetCardDataResult>

    Custom fetcher function to retrieve data. The function should return items

    Type Declaration

    dataKeyAlias: string
    dataSource?: string
    fetchStrategy: "rawSqlQuery" | "customFetch"
    infoTooltipText?: string

    Info tooltip text for the card

    'This chart shows the sales data for the last month.'
    
    key: string
    span?: string

    Grid field span for the field in the form (12, 8, 6, 4)

    sqlQuery: string
    stacked?: boolean
    title: string
    type: "areaChart"
    valuePrefix?: string
    values: DashboardPageConfigChartValue[]
    valueSuffix?: string
    withDots?: boolean