feat(数据可视化技术): 添加网店运营大屏前端和后端基础结构
- 新建前端项目配置文件和样式文件 - 创建后端 Flask 应用和数据库连接管理器 - 定义多个 API 路由以获取销售数据
This commit is contained in:
57
数据可视化技术/20250513/task.ipynb
Normal file
57
数据可视化技术/20250513/task.ipynb
Normal file
@@ -0,0 +1,57 @@
|
||||
{
|
||||
"cells": [
|
||||
{
|
||||
"cell_type": "code",
|
||||
"id": "initial_id",
|
||||
"metadata": {
|
||||
"collapsed": true,
|
||||
"ExecuteTime": {
|
||||
"end_time": "2025-05-13T02:49:05.718408Z",
|
||||
"start_time": "2025-05-13T02:49:05.678953Z"
|
||||
}
|
||||
},
|
||||
"source": [
|
||||
"from pyecharts.charts import Bar\n",
|
||||
"from pyecharts import options as opts\n",
|
||||
"from pyecharts.globals import ThemeType"
|
||||
],
|
||||
"outputs": [],
|
||||
"execution_count": 1
|
||||
},
|
||||
{
|
||||
"metadata": {},
|
||||
"cell_type": "code",
|
||||
"outputs": [],
|
||||
"execution_count": null,
|
||||
"source": [
|
||||
"bar = (\n",
|
||||
" Bar(init_opts=opts.InitOpts(theme=ThemeType.LIGHT))\n",
|
||||
" .add_xaxis(['哲学','历史','教育','科技','文学','经济'])\n",
|
||||
" .add_yaxis('商家 A',[25,20,36,40,75,90])\n",
|
||||
")"
|
||||
],
|
||||
"id": "e254f05719aaae60"
|
||||
}
|
||||
],
|
||||
"metadata": {
|
||||
"kernelspec": {
|
||||
"display_name": "Python 3",
|
||||
"language": "python",
|
||||
"name": "python3"
|
||||
},
|
||||
"language_info": {
|
||||
"codemirror_mode": {
|
||||
"name": "ipython",
|
||||
"version": 2
|
||||
},
|
||||
"file_extension": ".py",
|
||||
"mimetype": "text/x-python",
|
||||
"name": "python",
|
||||
"nbconvert_exporter": "python",
|
||||
"pygments_lexer": "ipython2",
|
||||
"version": "2.7.6"
|
||||
}
|
||||
},
|
||||
"nbformat": 4,
|
||||
"nbformat_minor": 5
|
||||
}
|
||||
Reference in New Issue
Block a user