TooltipOpts:提示框配置项
import pyecharts as pct
from pyecharts import options as opts
x_data = ['Apple', 'Huawei', 'Xiaomi', 'Oppo', 'Vivo', 'Meizu']
y_data = [123, 153, 89, 107, 98, 23]
line = pct.charts.Line()
line.add_xaxis(x_data)
line.add_yaxis('', y_data)
tooltip_opts=opts.TooltipOpts(is_show = True, trigger_on = "mousemove | click", axis_pointer_type='cross')
line.set_global_opts(tooltip_opts = tooltip_opts)
line.render()