-
Notifications
You must be signed in to change notification settings - Fork 1.6k
docs: update component axis doc #6718
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Pull Request Test Coverage Report for Build 14486178794Details
💛 - Coveralls |
bc8bc67
to
6836273
Compare
|
||
```js | ||
```ts | ||
({ | ||
type: 'interval', | ||
axis: false, | ||
}); | ||
``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
有时间可以补充一下不同坐标系下坐标轴的形态,或者一些特点,没时间就放到后面再update
| lineLineWidth | 轴线宽度 | `number` | `(datum, index, data) => number` | - | | | ||
| lineLineDash | 轴线描边的虚线配置,第一个值为虚线每个分段的长度,第二个值为分段间隔的距离。lineDash 设为[0, 0]的效果为没有描边。 | `[number,number]` | - | | | ||
| lineStroke | 轴线描边色 | `string` | - | | | ||
| lineStrokeOpacity | 轴线描边色透明度 | `number` | - | | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| labelFillOpacity | 刻度值文本透明度 | `number` | `(datum, index, data)=>number` | - | | ||
| labelStroke | 刻度值文本描边颜色 | `string` | `(datum, index, data)=>string` | - | | ||
| labelStrokeOpacity | 刻度值文本描边透明度 | `number` | `(datum, index, data)=>number` | - | | ||
`transform` 视觉通道用于刻度值转换。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
transform的示例很棒 👍,labelAutoHide这几个属性和transform里的转换是什么关系需要详细说一下,两边配置效果是不是一样的
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
比如 labelTransform: 'rotate(0)' 这种写法也是可以的
6836273
to
b88d249
Compare
axis 部分比较复杂,先合并一版,后面再改 |
Fixed: [Docs]: 改造文档「图表组件- 坐标轴(Axis)」 #6719