LiquidChart 水位图
XCharts的付费扩展图表 - 水位图。
截图
许可
扩展图表,需付费购买后才获得使用许可。
示例
Demo仓库:XCharts-LiquidChart-Demo
教程
文档
日志
v3.11.0
- (2024.06.16) 发布
v3.11.0
版本
v3.10.0
- (2024.01.21) 增加
Liquid
的更多创建默认图表的快捷方式和API
v3.9.0
- (2023.12.01) 发布
v3.9.0
版本 - (2023.12.01) 更新文档
v3.8.0
- (2023.07.31) 同步
XCharts v3.8.0
v3.6.1
- (2023.06.08) 发布
v3.6.1
版本 - (2023.06.08) 更新文档
v3.6.0
- (2023.04.01) 发布
v3.6.0
版本 - (2023.02.14) 同步
XCharts v3.6.0
v3.5.0
- (2022.12.01) 发布
v3.5.0
版本 - (2022.11.27) 调整
Documentation
文档结构
v3.4.0
- (2022.11.01) 支持
Animation
的unscaledTime
- (2022.11.01) 同步
XCharts v3.4.0
v3.2.0
- (2022.08.22) 发布
v3.2.0
版本 - (2022.08.19) 同步
XCharts v3.2.0
API
Liquid
class in XCharts.Runtime.Liquids / 继承自: Serie,INeedSerieContainer
API | 版本 | 描述 |
---|---|---|
AddDefaultSerie() | public static Serie AddDefaultSerie(BaseChart chart, string serieName) |
LiquidChart
class in XCharts.Runtime.Liquids / 继承自: BaseChart
水位图
API | 版本 | 描述 |
---|---|---|
DefaultCapsuleLiquidChart() | public void DefaultCapsuleLiquidChart() generate default capsule liquid chart. 生成默认的胶囊形水位图。 | |
DefaultRectLiquidChart() | public void DefaultRectLiquidChart() generate default rect liquid chart. 生成默认的矩形水位图。 | |
DefaultRoundRectLiquidChart() | public void DefaultRoundRectLiquidChart() generate default round rect liquid chart. 生成默认的圆角矩形水位图。 |
Vessel
class in XCharts.Runtime.Liquids / 继承自: MainComponent,ISerieContainer,IUpdateRuntimeData
容器组件。 一般用于LiquidChart。一个Chart中可以有多个Vessel,Serie中用vesselIndex来对应。
API | 版本 | 描述 |
---|---|---|
IsPointerEnter() | public bool IsPointerEnter() | |
UpdateRuntimeData() | public void UpdateRuntimeData(BaseChart chart) |
VesselContext
class in XCharts.Runtime.Liquids / 继承自: MainComponentContext
配置项手册
Liquid
class in XCharts.Runtime.Liquids / 继承自: Serie, INeedSerieContainer
参数 | 默认 | 版本 | 描述 |
---|---|---|---|
waveHeight | 10f | 波高。 | |
waveLength | 20f | 波长。为0-1小数时指直线的百分比。 | |
waveSpeed | 5f | 波速。正数时左移,负数时右移。 | |
waveOffset | 0f | 波偏移。 |
Vessel
class in XCharts.Runtime.Liquids / 继承自: MainComponent, ISerieContainer, IUpdateRuntimeData
容器组件。 一般用于LiquidChart。一个Chart中可以有多个Vessel,Serie中用vesselIndex来对应。
参数 | 默认 | 版本 | 描述 |
---|---|---|---|
show | true | 是否显示容器组件。 [defaut: true] | |
shape | 容器形状。 [default: Shape.Circle]Vessel.Shape :- Circle : 圆形- Rect : 正方形。- Triangle : 三角形。- Diamond : 菱形。 | ||
shapeWidth | 5f | 容器厚度。 [defaut: 5f] | |
gap | 5f | 间隙。容器和液体的间隙。 [defaut: 10f] | |
color | Color32(70, 70, 240, 255) | 容器颜色。默认和serie一致。 | |
backgroundColor | 背景色,默认透明。 [default: Color.clear ] | ||
autoColor | true | 是否自动颜色。为true时颜色会和serie一致。 [default: true] | |
center | When value between 0 and 1 represents a percentage relative to the chart. | ||
radius | 0.35f | When value between 0 and 1 represents a percentage relative to the chart. | |
smoothness | 1f | 水波平滑度。 [default: 1f] | |
width | 0.5f | When value between 0 and 1 represents a percentage relative to the chart. | |
height | 0.7f | When value between 0 and 1 represents a percentage relative to the chart. | |
borderWidth | 0f | 内壁边框。 | |
borderColor | Color32(70, 70, 240, 255) | 容器内壁边框颜色。默认和serie一致。 | |
cornerRadius | 容器的圆角半径。用数组分别指定4个圆角半径(顺时针左上,右上,右下,左下)。shape为Rect时有效。 |