@chfw 是这样吗?
控制台里的内容是这样:
C:\Python36\python.exe F:/code/pyecharts_1/pyechart_1.py
{
"title": [
{
"text": "\u6211\u7684\u7b2c\u4e00\u4e2a\u56fe\u8868",
"subtext": "\u8fd9\u91cc\u662f\u526f\u6807\u9898",
"left": "auto",
"top": "auto",
"textStyle": {
"color": "#000",
"fontSize": 18
},
"subtextStyle": {
"color": "#aaa",
"fontSize": 12
}
}
],
"toolbox": {
"show": true,
"orient": "vertical",
"left": "95%",
"top": "center",
"feature": {
"saveAsImage": {
"show": true,
"title": "\u4e0b\u8f7d\u56fe\u7247"
},
"restore": {
"show": true
},
"dataView": {
"show": true
}
}
},
"series_id": 8799860,
"tooltip": {
"trigger": "item",
"triggerOn": "mousemove|click",
"axisPointer": {
"type": "line"
},
"formatter": null,
"textStyle": {
"color": "#fff",
"fontSize": 14
},
"backgroundColor": "rgba(50,50,50,0.7)",
"borderColor": "#333",
"borderWidth": 0
},
"series": [
{
"type": "bar",
"name": "\u670d\u88c5",
"data": [
5,
20,
36,
10,
75,
90
],
"stack": "",
"barCategoryGap": "20%",
"label": {
"normal": {
"show": false,
"position": "top",
"textStyle": {
"color": "#000",
"fontSize": 12
},
"formatter": null
},
"emphasis": {
"show": true,
"position": null,
"textStyle": {
"color": "#fff",
"fontSize": 12
}
}
},
"markPoint": {
"data": []
},
"markLine": {
"data": []
},
"seriesId": 8799860
}
],
"legend": [
{
"data": [
"\u670d\u88c5"
],
"selectedMode": "multiple",
"show": true,
"left": "center",
"top": "top",
"orient": "horizontal",
"textStyle": {
"fontSize": 12,
"color": "#333"
}
}
],
"backgroundColor": "#fff",
"xAxis": [
{
"name": "",
"show": true,
"nameLocation": "middle",
"nameGap": 25,
"nameTextStyle": {
"fontSize": 14
},
"axisLabel": {
"interval": "auto",
"rotate": 0,
"margin": 8,
"textStyle": {
"fontSize": 12,
"color": "#000"
}
},
"axisTick": {
"alignWithLabel": false
},
"inverse": false,
"position": null,
"boundaryGap": true,
"min": null,
"max": null,
"data": [
"\u886c\u886b",
"\u7f8a\u6bdb\u886b",
"\u96ea\u7eba\u886b",
"\u88e4\u5b50",
"\u9ad8\u8ddf\u978b",
"\u889c\u5b50"
],
"type": "category"
}
],
"yAxis": [
{
"name": "",
"show": true,
"nameLocation": "middle",
"nameGap": 25,
"nameTextStyle": {
"fontSize": 14
},
"axisLabel": {
"formatter": "{value} ",
"rotate": 0,
"interval": "auto",
"margin": 8,
"textStyle": {
"fontSize": 12,
"color": "#000"
}
},
"axisTick": {
"alignWithLabel": false
},
"inverse": false,
"position": null,
"boundaryGap": true,
"min": null,
"max": null,
"splitLine": {
"show": true
},
"type": "value"
}
],
"color": [
"#c23531",
"#2f4554",
"#61a0a8",
"#d48265",
"#749f83",
"#ca8622",
"#bda29a",
"#6e7074",
"#546570",
"#c4ccd3",
"#f05b72",
"#ef5b9c",
"#f47920",
"#905a3d",
"#fab27b",
"#2a5caa",
"#444693",
"#726930",
"#b2d235",
"#6d8346",
"#ac6767",
"#1d953f",
"#6950a1",
"#918597",
"#f6f5ec"
]
}
Process finished with exit code 0