@antv/g2plot
Version:
An interactive and responsive charting library
24 lines (23 loc) • 737 B
TypeScript
import { Params } from '../../core/adaptor';
import { GeometryOptions, MappingOptions } from './base';
export interface LineGeometryOptions extends GeometryOptions {
/** x 轴字段 */
readonly xField?: string;
/** y 轴字段 */
readonly yField?: string;
/** 分组字段 */
readonly seriesField?: string;
/** 是否平滑 */
readonly smooth?: boolean;
/** 是否连接空数据 */
readonly connectNulls?: boolean;
/** line 映射配置 */
readonly line?: MappingOptions;
/** 阶梯折线图类型 */
readonly stepType?: string;
}
/**
* line 辅助点的配置处理
* @param params
*/
export declare function line<O extends LineGeometryOptions>(params: Params<O>): Params<O>;