code: def test_reverse_vertical_legend_area(self):
      data = chartify.examples.example_data()
  
      total_quantity_by_month_and_fruit = (
          data.groupby(
              [data["date"] + pd.offsets.MonthBegin(-1), "fruit"]
          )["quantity"]
          .sum()
          .reset_index()
          .rename(columns={"date": "month"})
          .sort_values("month")
      )
  
      # Plot the data
      ch = chartify.Chart(blank_labels=True, x_axis_type="datetime")
      ch.plot.area(
          data_frame=total_quantity_by_month_and_fruit,
          x_column="month",
          y_column="quantity",
          color_column="fruit",
          stacked=True,
      )
      labels = [
          item.label["value"] for item in ch.figure.legend[0].items
      ]
      assert np.array_equal(
          labels, ["Apple", "Banana", "Grape", "Orange"]
      )
      ch.set_legend_location("top_right", "vertical")
      labels = [
          item.label["value"] for item in ch.figure.legend[0].items
      ]
      assert np.array_equal(
          labels, ["Orange", "Grape", "Banana", "Apple"]
      )
  
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 2 for calling the TestLegend obj's underlying member method code with example usage: obj.test_reverse_vertical_legend_area() without return types