跳到主要内容
Version: v3.5.0

水位图

XCharts的付费扩展图表 - 水位图。

liquid

许可

扩展图表,需付费购买后才获得使用许可。

教程

扩展图表如何导入Demo项目或导入自己项目

文档

API
配置项手册

日志

v3.5.0

  • (2022.12.01) 发布v3.5.0版本
  • (2022.11.27) 调整Documentation文档结构

v3.4.0

  • (2022.11.01) 支持AnimationunscaledTime
  • (2022.11.01) 同步XCharts v3.4.0

v3.2.0

  • (2022.08.22) 发布v3.2.0版本
  • (2022.08.19) 同步XCharts v3.2.0

API

LiquidChart

Inherits or Implemented: BaseChart

VesselContext

Inherits or Implemented: MainComponentContext

配置项手册

Liquid

Inherits or Implemented: Serie,INeedSerieContainer

fielddefaultsincecomment
waveHeight10f波高。
waveLength20f波长。为0-1小数时指直线的百分比。
waveSpeed5f波速。正数时左移,负数时右移。
waveOffset0f波偏移。

Vessel

Inherits or Implemented: MainComponent,ISerieContainer,IUpdateRuntimeData

容器组件。 一般用于LiquidChart。一个Chart中可以有多个Vessel,Serie中用vesselIndex来对应。

fielddefaultsincecomment
showtrue是否显示容器组件。 [defaut: true]
shape容器形状。 [default: Shape.Circle]
Vessel.Shape:
- Circle: 圆形
- Rect: 正方形。
- Triangle: 三角形。
- Diamond: 菱形。
shapeWidth5f容器厚度。 [defaut: 5f]
gap5f间隙。容器和液体的间隙。 [defaut: 10f]
colorColor32(70, 70, 240, 255)容器颜色。默认和serie一致。
backgroundColor背景色,默认透明。 [default: Color.clear]
autoColortrue是否自动颜色。为true时颜色会和serie一致。 [default: true]
centerWhen value between 0 and 1 represents a percentage relative to the chart.
radius0.35fWhen value between 0 and 1 represents a percentage relative to the chart.
smoothness1f水波平滑度。 [default: 1f]
width0.5fWhen value between 0 and 1 represents a percentage relative to the chart.
height0.7fWhen value between 0 and 1 represents a percentage relative to the chart.
borderWidth0f内壁边框。
borderColorColor32(70, 70, 240, 255)容器内壁边框颜色。默认和serie一致。
cornerRadius容器的圆角半径。用数组分别指定4个圆角半径(顺时针左上,右上,右下,左下)。shape为Rect时有效。