Skip to main content

TreemapChart

XCharts paid extension chart - Treemap Diagram.

Screenshots​

Treemap01Treemap02Treemap03Treemap04

License​

Extension charts require a paid purchase to obtain a usage license.

Example​

Demo repository: XCharts-TreemapChart-Demo

Tutorial​

How to import extension charts into a demo project or your own project

Documentation​

API
Configuration Manual

Changelog​

v3.12.0​

  • (2024.09.30) Released version v3.12.0
  • (2024.09.30) Updated documentation

v3.11.0​

  • (2024.06.16) Released version v3.11.0

v3.9.0​

  • (2023.12.01) Released version v3.9.0
  • (2023.12.01) Updated documentation

v3.6.2​

  • (2023.11.08) Fixed an issue where the border was drawn abnormally after setting borderColor in ItemStyle

v3.6.1​

  • (2023.06.08) Released version v3.6.1
  • (2023.06.08) Updated documentation

v3.6.0​

  • (2023.04.01) Released version v3.6.0
  • (2023.03.09) Supported callbacks onSerieClick, onSerieDown, onSerieEnter, and onSerieExit
  • (2023.02.14) Synchronized with XCharts v3.6.0

v3.5.0​

  • (2022.12.01) Released version v3.5.0
  • (2022.11.27) Adjusted the structure of Documentation

v3.2.0​

  • (2022.08.22) Released version v3.2.0
  • (2022.08.19) Synchronized with XCharts v3.2.0

API​

Treemap​

class in XCharts.Runtime.Treemaps / Inherits from: 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 / Inherits from: BaseChart

Configuration​

Treemap​

class in XCharts.Runtime.Treemaps / Inherits from: 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

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