Interface SeriesComponentType

interface SeriesComponentType {
    caption?: string;
    categoryAxisIndex?: number;
    chartOptions?: ChartOptions;
    dataMax?: number;
    dataMin?: number;
    dataSize?: number;
    datasetIndex?: number;
    dimension?: string;
    domain?: [number, number?];
    formatting?: {
        currencyCode?: string;
        decimal?: number;
        digitsInfo?: string;
        shortNumber?: boolean;
        unit?: string;
        useUnderlyingUnit?: boolean;
    };
    id?: string;
    lightnessMeasure?: ChartMeasure;
    measure?: string;
    measures?: string[];
    member?: IMember;
    members?: Member[];
    name: string;
    noDisplay?: boolean;
    order?: OrderDirection;
    palette?: {
        colors?: string[];
        name?: string;
        pattern?: any;
        reverse?: boolean;
    };
    property?: Property;
    referenceLines?: ReferenceLine[];
    role?: ChartMeasureRoleType;
    seriesLayoutBy?: string;
    seriesStack?: string;
    seriesType?: string;
    shapeType?: string;
    sizeMeasure?: ChartMeasure;
    tooltip?: string[];
    valueAxisIndex?: number;
    visualMapDimension?: string;
}

Hierarchy

  • Partial<ChartMeasure>
    • SeriesComponentType

Properties

caption?: string
categoryAxisIndex?: number
chartOptions?: ChartOptions

针对单个 Dimension 的图形属性

dataMax?: number
dataMin?: number
dataSize?: number
datasetIndex?: number
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
id?: string
lightnessMeasure?: ChartMeasure
measure?: string
measures?: string[]
member?: IMember
members?: Member[]

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

name: string
noDisplay?: boolean
order?: OrderDirection

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
property?: Property
referenceLines?: ReferenceLine[]

Measure 的参考线

role?: ChartMeasureRoleType
seriesLayoutBy?: string
seriesStack?: string
seriesType?: string
shapeType?: string

对应 ECharts 中的 series type

sizeMeasure?: ChartMeasure
tooltip?: string[]
valueAxisIndex?: number
visualMapDimension?: string

Generated using TypeDoc