@qn-pandora/pandora-visualization
Version:
Pandora 通用可视化库
41 lines (40 loc) • 1.57 kB
TypeScript
import { ChartType, IFontStyle } from '../../../../../constants/chart-style';
import OneDChartStyleService, { IOneDChartStyle } from '../one-d';
import { SubtotalType, ValueType, BarShape, LabelPosition } from '../../../../../constants/capsule-bar-style';
export interface ICapsuleBarChartStyle extends IOneDChartStyle {
valueTypes: ValueType[];
subtotalType: SubtotalType;
constantValue: number;
barColor: string;
barShape: BarShape;
dataFont: IFontStyle;
labelFont: IFontStyle;
labelPosition: LabelPosition;
labelWidth: number;
valueWidth: number;
}
export default abstract class CapsuleBarChartStyleService extends OneDChartStyleService<ICapsuleBarChartStyle> {
chartType: ChartType;
valueTypes: ValueType[];
subtotalType: SubtotalType;
constantValue: number;
barColor: string;
barShape: BarShape;
dataFont: IFontStyle;
labelFont: IFontStyle;
labelWidth: number;
valueWidth: number;
labelPosition: LabelPosition;
getOptions(): ICapsuleBarChartStyle;
setValueTypes(valueTypes: ValueType[]): void;
setSubtotalType(subtotalType: SubtotalType): void;
setConstantValue(constantValue: number): void;
setBarColor(barColor: string): void;
setBarShape(barShape: BarShape): void;
setDataFont(dataFont: IFontStyle): void;
setLabelFont(labelFont: IFontStyle): void;
setLabelPosition(labelPosition: LabelPosition): void;
setLabelWidth(labelWidth: number): void;
setValueWidth(valueWidth: number): void;
constructor(options: ICapsuleBarChartStyle);
}