UNPKG

@zhouchangju/standard-chart

Version:

标准范式组件

28 lines (27 loc) 706 B
/** * * 扩展轴刻度标签的文本矩形可以设置百分比宽度,计算规则为将轴的整体长度均分,每一个区间长度即为百分比的计算基准 * * - 当前实现仅处理了 xAxis * - 满足 `xAxis.type: 'category'` * - 满足 `xAxis.boundaryGap: true` * - 会影响标签的重叠检测 * * @example * ```javascript * { * type: 'category', * axisLabel: { * width: '100%', * }, * data: [ * { * textStyle: { * width: '100%', * } * } * ] * } * ``` */ import { type EChartsExtensionInstallRegisters } from 'echarts/lib/extension'; export declare function install(registers: EChartsExtensionInstallRegisters): void;