Skip to content
pubscout

syncfusion_flutter_treemap

35.2.12, released 3 days ago by syncfusion.com

A Flutter Treemap library for interactive flat and hierarchical data visualization.

WASM-readyUses material_ui
$ flutter pub add syncfusion_flutter_treemap
Source repository

What it does

Allows developers to create customizable treemaps utilizing squarified, slice, and dice algorithms. Features support for selection, tooltips, legends, labels, and hierarchical drilldown.

AI-written summary of version 35.1.43, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to visualize hierarchical or flat quantitative data as proportional rectangles.
  • You require interactive features like tooltips, selection, and legends for treemaps.

Skip it when

  • You need a commercial license and are restricted from using Syncfusion paid or community licenses.
  • You are building simple line, bar, or pie charts instead of hierarchical rectangular layouts.

Strengths

  • Multiple layout algorithms (squarified, slice, dice).
  • Rich interactive features including selection, tooltips, legends, and drilldown.
  • Supports custom background widgets and labels.

Weaknesses

  • Requires a Syncfusion commercial or community license.
  • Limited to treemap data visualization use cases.

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
2

Requires a valid Syncfusion commercial or Free Community license.

SfTreemap(
  dataCount: _source.length,
  weightValueMapper: (int index) {
    return _source[index].usersInMillions;
  },
  levels: [
    TreemapLevel(
      groupMapper: (int index) {
        return _source[index].country;
      },
    ),
  ],
)

Alternatives

Packages that do the same job and could replace syncfusion_flutter_treemap.

Works with

Packages commonly used together with syncfusion_flutter_treemap: ones it builds on, ones built on it, and its own family.