python pip install pyecharts python from pyecharts.charts import HeatMap from pyecharts import options as opts from pyecharts.globals import ThemeType python data = [ [0, 0, 5], [0, 1, 10], [0, 2, 20], [1, 0, 15], [1, 1, 25], [1, 2, 30], [2, 0, 35], [2, 1, 40], [2, 2, 50], ] python heatmap = ( HeatMap() .set_global_opts( visualmap_opts=opts.VisualMapOpts(), xaxis_opts=opts.AxisOpts(splitline_opts=opts.SplitLineOpts(is_show=True)), yaxis_opts=opts.AxisOpts(splitline_opts=opts.SplitLineOpts(is_show=True)), ) .add( series_name="", data=data, label_opts=opts.LabelOpts(is_show=True, color="#000"), ) ) python


上一篇:
下一篇:
切换中文