跳到主要内容

GraphChart 关系图

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

截图​

许可​

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

教程​

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

文档​

API
配置项手册

日志

v3.12.0​

  • (2024.09.30) 发布v3.12.0版本
  • (2024.09.30) 更新文档

v3.11.0​

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

API​

Force​

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

图表的力引导布局。

Force.currentIterations​

public int currentIterations

Graph​

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

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

Graph.force​

public Force force
图表的力引导布局。

Graph.graphData​

public GraphData graphData

Graph.levelStyle​

public LevelStyle levelStyle
层级样式。

Graph.AddDefaultSerie​

public static void AddDefaultSerie(BaseChart chart, string serieName)

public override SerieDataLink AddLink(string sourceId, string targetId, double value = 0)

Graph.AddSerieData​

public override void AddSerieData(SerieData serieData)

Graph.ClearData​

public override void ClearData()
清空所有数据

Graph.GetLevelItemStyle​

public ItemStyle GetLevelItemStyle(int depth)

Graph.GetLevelLabel​

public LabelStyle GetLevelLabel(int depth)

Graph.GetLevelLineStyle​

public LineStyle GetLevelLineStyle(int depth)

GraphChart​

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

配置项手册​

Force​

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

图表的力引导布局。

Force.centerDataIndex​

int -1

中心节点数据的索引。

Force.edgeLength​

float 80

边的两个节点之间的距离,这个距离也会受 repulsion 影响。

Force.friction​

float 0.6f

节点移动的摩擦因子,该值越大节点移动越慢。

Force.iterations​

int 200

力引导布局的迭代次数。

Force.show​

bool true

Force.stepCount​

int 1

Force.stepFactor​

float 1f

力引导布局的步进因子。

Graph​

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

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

Graph.force​

Force

图表的力引导布局。

Graph.levelStyle​

LevelStyle

层级样式。