code: def test_reverse_vertical_legend_bar(self):
      data = chartify.examples.example_data()
      quantity_by_fruit_and_country = (
          data.groupby(["fruit", "country"])["quantity"]
          .sum()
          .reset_index()
      )
  
      ch = chartify.Chart(blank_labels=True, x_axis_type="categorical")
      ch.plot.bar_stacked(
          data_frame=quantity_by_fruit_and_country,
          categorical_columns=["fruit"],
          numeric_column="quantity",
          stack_column="country",
          normalize=False,
      )
      labels = [
          item.label["value"] for item in ch.figure.legend[0].items
      ]
      assert np.array_equal(labels, ["BR", "CA", "GB", "JP", "US"])
      ch.set_legend_location("top_right", "vertical")
      labels = [
          item.label["value"] for item in ch.figure.legend[0].items
      ]
      assert np.array_equal(labels, ["US", "JP", "GB", "CA", "BR"])
  
file_path: chartify/tests/test_chart.py
imports: import chartify
  import numpy
  import pandas
  import pytest
  from selenium.common.exceptions import WebDriverException
label_desc: Use image node_id 3 for calling the TestLegend obj's underlying member method code with example usage: obj.test_reverse_vertical_legend_bar() without return types