跳到主要内容

TreemapChart 矩形树图

XCharts付费扩展图表 - 矩形树图。

截图​

Treemap01Treemap02Treemap03Treemap04

许可​

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

示例​

Demo仓库:XCharts-TreemapChart-Demo

教程​

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

文档​

API
配置项手册

日志

v3.12.0​

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

v3.11.0​

  • (2024.06.16) 发布v3.11.0版本

v3.9.0​

  • (2023.12.01) 发布v3.9.0版本
  • (2023.12.01) 更新文档

v3.6.2​

  • (2023.11.08) 修复ItemStyle设置borderColor后边框绘制异常的问题

v3.6.1​

  • (2023.06.08) 发布v3.6.1版本
  • (2023.06.08) 更新文档

v3.6.0​

  • (2023.04.01) 发布v3.6.0版本
  • (2023.03.09) 支持onSerieClick onSerieDown onSerieEnter和onSerieExit回调
  • (2023.02.14) 同步XCharts v3.6.0

v3.5.0​

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

v3.2.0​

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

API​

Treemap​

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

Treemap.customGoUpLevelButton​

public GameObject customGoUpLevelButton
自定义返回上一层按钮,自定义的按钮需要自己处理点击事件,调用GoUpALevel()接口。

Treemap.drillDownIcon​

public string drillDownIcon
当节点可以下钻时的提示符,只能是字符。默认为▶

Treemap.leafDepth​

public int leafDepth
默认显示的几层节点。默认为0时表示尽可能展示多层节点,设置大于0时,下钻功能开启,需要点击后才展示子节点。

Treemap.levelStyle​

public LevelStyle levelStyle

Treemap.upperLabel​

public LabelStyle upperLabel
父节点标签。show为true时表示显示父节点标签,margin参数设置子节点和父节点的间距。

Treemap.visualDimension​

public int visualDimension
用于计算占比的数据维数。

Treemap.AddDefaultSerie​

public static void AddDefaultSerie(BaseChart chart, string serieName)

Treemap.CanGoUpALevel​

public bool CanGoUpALevel()
是否可以返回上一层

Treemap.GetLevelItemStyle​

public ItemStyle GetLevelItemStyle(int level)

Treemap.GetLevelLabel​

public LabelStyle GetLevelLabel(int level)

Treemap.GetLevelUpperLabel​

public LabelStyle GetLevelUpperLabel(int level)

Treemap.GoUpALevel​

public void GoUpALevel()
返回上一层

Treemap.OnDataUpdate​

public override void OnDataUpdate()

Treemap.SetSelectedSerieData​

public bool SetSelectedSerieData(string serieDataName)
设置选中(要展示的)的数据名

TreemapChart​

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

配置项手册​

Treemap​

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

Treemap.customGoUpLevelButton​

GameObject

自定义返回上一层按钮,自定义的按钮需要自己处理点击事件,调用GoUpALevel()接口。

Treemap.drillDownIcon​

string

当节点可以下钻时的提示符,只能是字符。默认为▶

Treemap.leafDepth​

int 0

默认显示的几层节点。默认为0时表示尽可能展示多层节点,设置大于0时,下钻功能开启,需要点击后才展示子节点。

Treemap.levelStyle​

LevelStyle

Treemap.upperLabel​

LabelStyle

父节点标签。show为true时表示显示父节点标签,margin参数设置子节点和父节点的间距。

Treemap.visualDimension​

int 0

用于计算占比的数据维数。