TreeMapSeries constructor

TreeMapSeries(
  1. TreeData data, {
  2. StyleFun<TreeMapNode, LabelStyle?>? labelStyleFun,
  3. LayoutType layoutType = LayoutType.square,
  4. int showDepth = 2,
  5. Fun1<TreeMapNode, Alignment>? alignFun,
  6. Fun1<TreeMapNode, num>? paddingFun,
  7. Fun2<TreeMapNode, TreeMapNode, int>? sortFun,
  8. required StyleFun<TreeMapNode, AreaStyle?> areaStyleFun,
  9. SNumber leftMargin = SNumber.zero,
  10. SNumber topMargin = SNumber.zero,
  11. SNumber rightMargin = SNumber.zero,
  12. SNumber bottomMargin = SNumber.zero,
  13. SNumber? width,
  14. SNumber? height,
  15. ToolTip? tooltip,
  16. AnimatorProps? animation,
  17. bool touch = true,
  18. bool clip = true,
  19. int z = 0,
})

Implementation

TreeMapSeries(
  this.data, {
  this.labelStyleFun,
  this.layoutType = LayoutType.square,
  this.showDepth = 2,
  this.alignFun,
  this.paddingFun,
  this.sortFun,
  required this.areaStyleFun,
  super.leftMargin,
  super.topMargin,
  super.rightMargin,
  super.bottomMargin,
  super.width,
  super.height,
  super.tooltip,
  super.animation,
  super.touch,
  super.clip,
  super.z,
}) : super(xAxisIndex: -1, yAxisIndex: -1, calendarIndex: -1, parallelIndex: -1, polarAxisIndex: -1, radarIndex: -1);