重构系统界面与页面命名,全面清除emoji元素并规范专业展示
This commit is contained in:
@@ -94,7 +94,7 @@ def generate_interactive_graph(
|
||||
label = node.split("@")[0] if "@" in node else node
|
||||
title_parts = [f"<b>{label}</b>", f"类型: {node_type}"]
|
||||
if data.get("is_sanctioned"):
|
||||
title_parts.append("⚠️ <b>已被制裁</b>")
|
||||
title_parts.append("<b>[已被制裁]</b>")
|
||||
if data.get("stock_code"):
|
||||
title_parts.append(f"代码: {data['stock_code']}")
|
||||
if data.get("industry"):
|
||||
@@ -157,7 +157,7 @@ def _generate_fallback_html(G: nx.DiGraph) -> str:
|
||||
|
||||
return f"""
|
||||
<html><body style='background: #1a1a2e; color: white; padding: 20px;'>
|
||||
<h2>📊 知识图谱节点列表(pyvis 未安装,使用简化视图)</h2>
|
||||
<h2>知识图谱节点列表(pyvis 未安装,使用简化视图)</h2>
|
||||
<p>节点数: {G.number_of_nodes()} | 边数: {G.number_of_edges()}</p>
|
||||
<ul>{''.join(nodes_info[:50])}</ul>
|
||||
<p style='color: #888;'>安装 pyvis 以获得交互式可视化: pip install pyvis</p>
|
||||
|
||||
Reference in New Issue
Block a user