from pyecharts.charts import bar
from pyecharts import options as opts
# 內建主題型別可檢視 pyecharts.globals.themetype
from pyecharts.
globals
import themetype
bar =
( bar(init_opts=opts.initopts(width=
"1700px"
, height=
"750px"
, page_title=
"造價四劍客"
, theme=themetype.dark)
).add_xaxis(
["襯衫"
,"羊毛衫"
,"雪紡衫"
,"褲子"
,"高跟鞋"
,"襪子"])
.add_yaxis(
"商家a",[
5,20,
36,10,
75,90]
).add_yaxis(
"商家b",[
15,6,
45,20,
35,66]
).set_global_opts(title_opts=opts.titleopts(title=
"商家銷售彙總"
,subtitle=
"分類彙總"))
#.set_global_opts(title_opts=opts.titleopts(title="主標題", subtitle="副標題"))
)bar.render(
"123.html"
)
結果如下。設定canvas畫布大小
canvas的繪製是以畫布大小為準的。canvas的預設畫布大小為300 150。設定canvas畫布大小的方法 方法一 test width 100px height 100px canvas 方法二 test canvas var canvas document.getelementbyid t...
調整視窗大小
getwindowrect lprect getclientrect lprect screentoclient lprect movewindow lprect 注 這裡四個函式的引數既可以是crect,也可以是crect cwnd getwindowrect 的作用是獲取cwnd 視窗的座標位置...
quark mail 調整大小
usr bin perl w use strict use mime base64 set environment my domain shift or die usage 0 domain n die error illegal domain n if domain get domain head...