{{target: component-y-axis}}

yAxis(Object)

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

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

show(boolean) = true

是否显示 y 轴。

gridIndex(number) = 0

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

position(string)

y 轴的位置。

可选:

  • 'left'
  • 'right'

默认 grid 中的第一个 y 轴在 grid 的左侧('left'),第二个 y 轴视第一个 y 轴的位置放在另一侧。

offset(number) = 0

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

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

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