58 lines
1.2 KiB
Plaintext
58 lines
1.2 KiB
Plaintext
{
|
|
"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
|
|
}
|