Interface ChartMeasure

Measure 字段结构会使用 Dimension 中的 dimension, members, zeroSuppression 属性

interface ChartMeasure {
    caption?: string;
    chartOptions?: ChartOptions;
    dimension?: string;
    domain?: [number, number?];
    formatting?: {
        currencyCode?: string;
        decimal?: number;
        digitsInfo?: string;
        shortNumber?: boolean;
        unit?: string;
        useUnderlyingUnit?: boolean;
    };
    measure: string;
    members?: Member[];
    order?: OrderDirection;
    palette?: {
        colors?: string[];
        name?: string;
        pattern?: any;
        reverse?: boolean;
    };
    referenceLines?: ReferenceLine[];
    role?: ChartMeasureRoleType;
    shapeType?: string;
}

Hierarchy

Properties

caption?: string

Caption of dimension

chartOptions?: ChartOptions

针对单个 Dimension 的图形属性

dimension?: string
domain?: [number, number?]
formatting?: {
    currencyCode?: string;
    decimal?: number;
    digitsInfo?: string;
    shortNumber?: boolean;
    unit?: string;
    useUnderlyingUnit?: boolean;
}

Type declaration

  • Optional currencyCode?: string
  • Optional decimal?: number
  • Optional digitsInfo?: string
  • Optional shortNumber?: boolean
  • Optional unit?: string
  • Optional useUnderlyingUnit?: boolean
measure: string
members?: Member[]

如当 Dimension = "Measures" 时可以设置 members 为 ["Gross Margin", "Discount"] 等度量字段名 也可以为 dimension 设置固定的成员

Order by

palette?: {
    colors?: string[];
    name?: string;
    pattern?: any;
    reverse?: boolean;
}

Type declaration

  • Optional colors?: string[]
  • Optional name?: string
  • Optional pattern?: any
  • Optional reverse?: boolean
referenceLines?: ReferenceLine[]

Measure 的参考线

shapeType?: string

对应 ECharts 中的 series type

Generated using TypeDoc