code: def _chart_for_grid_v2():
      x_data = ["{}月".format(i) for i in range(1, 13)]
      bar = (
          Bar()
          .add_xaxis(x_data)
          .add_yaxis(
              "蒸发量",
              [
                  2.0,
                  4.9,
                  7.0,
                  23.2,
                  25.6,
                  76.7,
                  135.6,
                  162.2,
                  32.6,
                  20.0,
                  6.4,
                  3.3,
              ],
              yaxis_index=0,
              color="red",
          )
          .add_yaxis(
              "降水量",
              [
                  2.6,
                  5.9,
                  9.0,
                  26.4,
                  28.7,
                  70.7,
                  175.6,
                  182.2,
                  48.7,
                  18.8,
                  6.0,
                  2.3,
              ],
              yaxis_index=1,
              color="green",
          )
          .extend_axis(
              yaxis=opts.AxisOpts(
                  name="蒸发量", type_="value", position="right"
              )
          )
          .extend_axis(
              yaxis=opts.AxisOpts(
                  type_="value", name="温度", position="left"
              )
          )
          .set_global_opts(
              yaxis_opts=opts.AxisOpts(
                  name="降水量", position="right", offset=80
              )
          )
      )
  
      line = (
          Line()
          .add_xaxis(x_data)
          .add_yaxis(
              "平均温度",
              [
                  2.0,
                  2.2,
                  3.3,
                  4.5,
                  6.3,
                  10.2,
                  20.3,
                  23.4,
                  23.0,
                  16.5,
                  12.0,
                  6.2,
              ],
              yaxis_index=2,
              color="blue",
              label_opts=opts.LabelOpts(is_show=False),
          )
          .set_global_opts(visualmap_opts=opts.VisualMapOpts())
      )
  
      bar.overlap(line)
      assert_equal(bar.colors[:3], ["red", "green", "blue"])
      return bar
  
file_path: pyecharts/test/test_grid.py
imports: from unittest.mock import patch
  from nose.tools import assert_equal, assert_in
  from pyecharts import options
  from pyecharts.charts import Bar, Grid, Line, Radar, Geo, Map
  from pyecharts.globals import ThemeType, ChartType
  from pyecharts.faker import Faker
  from pyecharts.commons.utils import JsCode
label_desc: Use image node_id 5 for calling a global function with example usage: _chart_for_grid_v2() and returns: bar