-
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathapp.py
More file actions
62 lines (57 loc) · 1.62 KB
/
app.py
File metadata and controls
62 lines (57 loc) · 1.62 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
import dash # noqa: I001
from dash import html
import feffery_infographic as fi
import feffery_antd_components as fac
from feffery_dash_utils.style_utils import style
app = dash.Dash(__name__)
syntax_demo = """
infographic sequence-ascending-stairs-3d-simple
data
title 企业优势列表
desc 展示企业在不同维度上的核心优势与表现值
items
- label 品牌影响力
value 85
desc 在目标用户群中具备较强认知与信任度
time 2021
icon mingcute/diamond-2-fill
illus creative-experiment
- label 技术研发力
value 90
desc 拥有自研核心系统与持续创新能力
time 2022
icon mingcute/code-fill
illus code-thinking
- label 市场增长快
value 78
desc 近一年用户规模实现快速增长
time 2023
icon mingcute/wallet-4-line
illus business-analytics
- label 服务满意度
value 88
desc 用户对服务体系整体评分较高
time 2020
icon mingcute/happy-line
illus feeling-happy
- label 数据资产全
value 92
desc 构建了完整用户标签与画像体系
time 2022
icon mingcute/user-4-line
illus mobile-photos
- label 创新能力强
value 83
desc 新产品上线频率高于行业平均
time 2023
icon mingcute/rocket-line
illus creativity
theme light
palette antv
"""
app.layout = lambda: html.Div(
[fac.AntdCenter(fi.Infographic(editable=True, syntax=syntax_demo, padding=25, height=800))],
style=style(padding='100px 50px'),
)
if __name__ == '__main__':
app.run(debug=True)