( Bar3D() .add( series_name="得分", data=dt, xaxis3d_opts=opts.Axis3DOpts(type_="category", data=citys), yaxis3d_opts=opts.Axis3DOpts(type_="category", data=timeData), zaxis3d_opts=opts.Axis3DOpts(type_="value"), ) .set_global_opts( visualmap_opts=opts.VisualMapOpts( max_=0.6, range_color=[ "#313695