{{target: component-x-axis}}

xAxis(Object)

直角坐标系 grid 中的 x 轴,一般情况下单个 grid 组件最多只能放上下两个 x 轴,多于两个 x 轴需要通过配置 offset 属性防止同个位置多个 x 轴的重叠。

{{use: partial-component-id(prefix=“#”)}}

show(boolean) = true

是否显示 x 轴。

gridIndex(number) = 0

x 轴所在的 grid 的索引,默认位于第一个 grid。

position(string)

x 轴的位置。

可选:

  • 'top'
  • 'bottom'

默认 grid 中的第一个 x 轴在 grid 的下方('bottom'),第二个 x 轴视第一个 x 轴的位置放在另一侧。

offset(number) = 0

X 轴相对于默认位置的偏移,在相同的 position 上有多个 X 轴的时候有用。

{{ use: axis-common( prefix=‘#’, componentType=‘xAxis’, axisTypeDefault=“‘category’”, hasSplitLineAndArea=true, galleryViewPath=${galleryViewPath}, galleryEditorPath=${galleryEditorPath} )}}

{{use:partial-z-zlevel( prefix=“#”, componentName=“X 轴”, defaultZ=0 ) }}