Skip to content

Latest commit

 

History

History
18 lines (13 loc) · 464 Bytes

liquid_shape_diamond.md

File metadata and controls

18 lines (13 loc) · 464 Bytes

pyecharts 代码 / 效果

from pyecharts import options as opts
from pyecharts.charts import Liquid
from pyecharts.globals import SymbolType

c = (
    Liquid()
    .add("lq", [0.3, 0.7], is_outline_show=False, shape=SymbolType.DIAMOND)
    .set_global_opts(title_opts=opts.TitleOpts(title="Liquid-Shape-Diamond"))
    .render("liquid_shape_diamond.html")
)
<iframe width="100%" height="800px" src="Liquid/liquid_shape_diamond.html"></iframe>