python画图保存成html格式、用浏览器打开页面为空白_用的官网第一个示例,结果网页打开是个空白页面...

@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

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值