c12_treemap 层级构成 (Composition)
The Economist Nature IEEE
分层嵌套树状矩形图 (Treemap) Hierarchical Squarified Treemap
分层树状矩形图 (Treemap),以面积严格守恒的嵌套矩形展示多层级分类占比与结构分布。
携带样例一键进 Studio
预载标准示例 · 浏览器秒级出图
矢量预览 (Vector Preview)
600 DPI Ready
PAPER CANVAS ● 100% 物理纸张出版对比 层级构成 · 600 DPI 无损矢量
统计学特性 (Statistical Features)
- Squarified 面积矩形分割算法
- 总体与子类别嵌套层级
- 面积正比于度量值
- 多层色系分类映射
QC 质检要点 (QC Highlights)
- 矩形文字自动溢出裁剪或缩放
- 层级边框粗细分明 (主类粗/子类细)
- 百分比数字格式统一
- 小面积色块文字可辨
顶刊色彩提取器 (Palette Extractor)Nature
Crisp sans-serif typography, clean borderless spines, high-contrast palette with soft muted secondary accents.
审稿无障碍视觉模拟 (SVG Filter):
无障碍评分:AAA (Deuteranopia & Protanopia Compliant)
Data Contract 数据契约规范 Strict Schema
输入数据必须完全符合下列列名与数据类型规范,方可通过自动化数据前检 (Pre-flight Validation)。
| 字段名称 (Column) | 数据类型 (Type) | 约束性 | 语义说明与值域约束 |
|---|---|---|---|
| level_1 | categorical | 必需 (Required) | Top-level parent category or domain |
| level_2 | categorical | 必需 (Required) | Sub-category or child pathway name |
| value | continuous | 必需 (Required) | Quantitative weight, count, or size (min: 0.0001, max: None) |
| growth_metric | continuous | 可选 (Optional) | Secondary continuous metric mapped to lightness or color modulation |
组内最小样本量: n ≥ 1
最大允许缺失率: 5%
独立可复现 Python 绘图源码 Stand-alone Script
完全可复现的 Python 脚本,支持 CLI 参数 `--data`, `--style`, `--output-dir` 与模块化 `render()` 调用。
#!/usr/bin/env python3
"""FigureCraft Chart Engine: Hierarchical Squarified Treemap (c12_treemap)."""
import os
import sys
import argparse
from pathlib import Path
from typing import List, Dict, Optional, Tuple, Any
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import matplotlib.patches as patches
import matplotlib.colors as mcolors
try:
from engines.styles import apply_style, get_palette
except ImportError:
# ── Standalone fallback ── runs without FigureCraft engine install ──
# ... [Academic Pro 完整独立可复现源码已锁定] 此脚本内置 6 种期刊配色规范,复制即可本地直接运行。如需免配置直接交互运行? 携带样例一键进 Studio 在线运行 · 获取完整工业级工程包(含逐期刊字体栈与批量渲染 CLI)请查看 源码工程包。
学术成果引用规范 (Cite FigureCraft)Citable Paradigm
在毕业论文、SCI 期刊发表或学术预印本中使用本套件产出图表时,请按规范引用。
@software{figurecraft2026,
author = {{FigureCraft Core Team}},
title = {FigureCraft: In-Browser Publication-Grade Scientific Data Visualization Suite and Multi-Agent Skills Hub},
year = {2026},
url = {https://figure-craft.pages.dev},
version = {1.0.0},
note = {WebAssembly-powered client-side reproducible scientific plotting engine}
}遵循标准学术开源许可,完全支持 LaTeX、Overleaf、Zotero、EndNote 与 Google Scholar
DOI: 10.5281/zenodo.figurecraft.2026