update doc

This commit is contained in:
monitor1394
2022-11-27 16:54:32 +08:00
parent 32f98b6d5a
commit 906b6ed4c7
7 changed files with 11 additions and 13 deletions

View File

@@ -5,9 +5,6 @@ slug: /api
# Chart API
## All Class
## All Class
||||
@@ -118,7 +115,7 @@ Inherits or Implemented: [BaseGraph](#basegraph),[ISerializationCallbackReceiver
| AddYAxisData() |public void AddYAxisData(string category, int yAxisIndex = 0)<br/>Add a category data to yAxis. |
| AddYAxisIcon() |public void AddYAxisIcon(Sprite icon, int yAxisIndex = 0)<br/>Add an icon to yAxis. |
| AnimationEnable() |public void AnimationEnable(bool flag)<br/>Whether series animation enabel. |
| AnimationFadeIn() |public void AnimationFadeIn()<br/>fadeIn animation. |
| AnimationFadeIn() |public void AnimationFadeIn(bool reset = true)<br/>fadeIn animation. |
| AnimationFadeOut() |public void AnimationFadeOut()<br/>fadeIn animation. |
| AnimationPause() |public void AnimationPause()<br/>Pause animation. |
| AnimationReset() |public void AnimationReset()<br/>Reset animation. |

View File

@@ -3,10 +3,7 @@ sidebar_position: 3
slug: /api
---
# API
## All Class
# API手册
## 所有类
@@ -118,7 +115,7 @@ Inherits or Implemented: [BaseGraph](#basegraph),[ISerializationCallbackReceiver
| AddYAxisData() |public void AddYAxisData(string category, int yAxisIndex = 0)<br/>添加一个类目数据到指定的y轴。 |
| AddYAxisIcon() |public void AddYAxisIcon(Sprite icon, int yAxisIndex = 0)<br/>添加一个图标到指定的y轴。 |
| AnimationEnable() |public void AnimationEnable(bool flag)<br/>启用或关闭起始动画。 |
| AnimationFadeIn() |public void AnimationFadeIn()<br/>开始渐入动画。 |
| AnimationFadeIn() |public void AnimationFadeIn(bool reset = true)<br/>开始渐入动画。 |
| AnimationFadeOut() |public void AnimationFadeOut()<br/>开始渐出动画。 |
| AnimationPause() |public void AnimationPause()<br/>暂停动画。 |
| AnimationReset() |public void AnimationReset()<br/>重置动画。 |

View File

@@ -64,6 +64,10 @@ slug: /changelog
## master
* (2022.11.27) 优化`Tooltip``LineStyle`支持设置`Shadow`时的颜色
* (2022.11.26) 优化`LabelLine``symbol`默认不显示
* (2022.11.26) 修复`LineChart``XY`都为数值轴时添加无序数据显示异常的问题
* (2022.11.26) 修复`DataZoom`从右往左框选时异常的问题
* (2022.11.20) 调整`UdpateXAxisIcon()`接口重命名为`UpdateXAxisIcon()` (#235)
* (2022.11.12) 增加`Pie``LabelLine`支持`Symbol`
* (2022.11.12) 增加`DataZoom``MarqueeStyle`支持框选区域

View File

@@ -102,7 +102,7 @@ Inherits or Implemented: [ChildComponent](#childcomponent)
|field|default|since|comment|
|--|--|--|--|
|enable|true||是否开启动画效果。
|type|||动画类型。<br/>`AnimationType`:<br/>- `Default`: 默认。内部会根据实际情况选择一种动画播放方式。<br/>- `LeftToRight`: 从左往右播放动画。<br/>- `BottomToTop`: 从下往上播放动画。<br/>- `InsideOut`: 由内到外播放动画。<br/>- `AlongPath`: 沿着路径播放动画。<br/>- `Clockwise`: 顺时针播放动画。<br/>|
|type|||动画类型。<br/>`AnimationType`:<br/>- `Default`: 默认。内部会根据实际情况选择一种动画播放方式。<br/>- `LeftToRight`: 从左往右播放动画。<br/>- `BottomToTop`: 从下往上播放动画。<br/>- `InsideOut`: 由内到外播放动画。<br/>- `AlongPath`: 沿着路径播放动画。当折线图从左到右无序或有折返时,可以使用该模式。<br/>- `Clockwise`: 顺时针播放动画。<br/>|
|easting|||动画的缓动效果。<br/>`AnimationEasing`:<br/>- `Linear`: <br/>|
|threshold|2000||是否开启动画的阈值,当单个系列显示的图形数量大于这个阈值时会关闭动画。
|fadeInDuration|1000||设定的渐入动画时长毫秒。如果要设置单个数据项的渐入时长可以用代码定制customFadeInDuration。

View File

@@ -3,7 +3,7 @@ sidebar_position: 4
slug: /faq
---
# 常见问
# 常见问
[QA 1如何调整坐标轴与背景的边距](#如何调整坐标轴与背景的边距)
[QA 2如何让初始动画重新播放](#如何让初始动画重新播放)

View File

@@ -45,7 +45,7 @@ slug: /support
| 可另付费定制 | | | √ | √ | √ |
| 可另付费加急 | | | √ | √ | √ |
| VIP专有功能教程和文档 | | | √待开放 | √待开放 | √待开放 |
| 扩展图表购买 | | | 按需购买 | __全部免费__ | 按需购买 |
| 扩展图表购买 | | | 按需购买 | __全部免费__ | __全部免费__ |
| 扩展图表源码 | | | 永久持有 | 永久持有 | 永久持有 |
| 扩展图表更新 | | | 1年更新支持 | 1年更新支持 | 1年更新支持 |

View File

@@ -1,5 +1,5 @@
---
title: 入门教程
title: 入门教程5分钟上手 XCharts 3.0
sidebar_position: 1
slug: /tutorial01
---