from pyecharts import Pie
attr = ["2dlots," 3d"]
v1 = [12,5]
pie = Pie ("Chinese 2017 movie visual type ratio", title_pos="left",title_text_size=15,width=1000,height=350)
pie.add (", attr,v1,center= [50,60], radius= [0,80], is_label_show=True,is_random=True)
pie.render ("Chinese 2017 movie visual type ratio .html")
as shown in figure
A simple pie chart example. Now if you want to move the mouse over the 2d or 3D part of the pie chart, it will display more tag information, such as 3D type movies, 2d type movies
how to add these tag information