Skip to main content
Version: master

GraphChart 关系图

XCharts付费扩展图表 - 关系图。

截图

许可

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

教程

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

文档

API
配置项手册

日志

v3.11.0

  • (2024.06.16) 发布v3.11.0版本
  • (2024.05.15) 增加Graph关系图

API

Force

class in XCharts.Runtime.Graphs / 继承自: ChildComponent

图表的力引导布局。

Graph

class in XCharts.Runtime.Graphs / 继承自: Serie

关系图,用于展现节点以及节点之间的关系数据。

API版本描述
AddDefaultSerie()public static void AddDefaultSerie(BaseChart chart, string serieName)
AddLink()public override SerieDataLink AddLink(string sourceId, string targetId, double value = 0)
AddSerieData()public override void AddSerieData(SerieData serieData)
ClearData()public override void ClearData()
清空所有数据
GetLevelItemStyle()public ItemStyle GetLevelItemStyle(int depth)
GetLevelLabel()public LabelStyle GetLevelLabel(int depth)
GetLevelLineStyle()public LineStyle GetLevelLineStyle(int depth)

GraphChart

class in XCharts.Runtime.Graphs / 继承自: BaseChart

配置项手册

Force

class in XCharts.Runtime.Graphs / 继承自: ChildComponent

图表的力引导布局。

参数默认版本描述
showtrue
stepFactor1f力引导布局的步进因子。
stepCount1
friction0.6f节点移动的摩擦因子,该值越大节点移动越慢。
edgeLength80边的两个节点之间的距离,这个距离也会受 repulsion 影响。
centerDataIndex-1中心节点数据的索引。
iterations200力引导布局的迭代次数。

Graph

class in XCharts.Runtime.Graphs / 继承自: Serie

关系图,用于展现节点以及节点之间的关系数据。

参数默认版本描述
levelStyle层级样式。
force图表的力引导布局。 Force