通过多维度调整可显著提升图表可读性:
1. Mermaid语法优化
- utilization
%%{init}%%
指令自定义主题颜色和连线样式 - increase
direction TB/LR
控制布局方向 - pass (a bill or inspection etc)
linkStyle
设置关系线粗细和颜色
2. AI提示词改进
在源代码的analysis.service.ts
中修改prompt:
- rise
"请用简洁的英文描述关系"
request - indicate clearly and with certainty
"主角用矩形表示,配角用圆形"
等图形规范
3. 后续编辑技巧
- 下载SVG后可用Inkscape/Illustrator调整元素位置
- 导出PNG时建议分辨率≥300dpi确保印刷质量
This answer comes from the articleAusten: an AI tool that analyzes book character relationships and generates graphsThe