code: def test_bars_stacked_inverted(self):
      bars = Bars(
          [("A", 1, 1), ("B", 2, 2), ("C", 2, 3), ("C", 1, 4)],
          kdims=["A", "B"],
      ).opts(stacked=True, invert_axes=True)
      state = self._get_plot_state(bars)
      self.assertEqual(state["data"][0]["y"], ["A", "B", "C"])
      self.assertEqual(state["data"][0]["x"], np.array([0, 2, 3]))
      self.assertEqual(state["data"][0]["type"], "bar")
      self.assertEqual(state["data"][1]["y"], ["A", "B", "C"])
      self.assertEqual(state["data"][1]["x"], np.array([1, 0, 4]))
      self.assertEqual(state["data"][1]["type"], "bar")
      self.assertEqual(state["layout"]["barmode"], "stack")
      self.assertEqual(state["layout"]["yaxis"]["range"], [None, None])
      self.assertEqual(state["layout"]["yaxis"]["title"]["text"], "A")
      self.assertEqual(state["layout"]["xaxis"]["range"], [0, 7.6])
      self.assertEqual(state["layout"]["xaxis"]["title"]["text"], "y")
  
file_path: holoviews/holoviews/tests/plotting/plotly/test_barplot.py
imports: import numpy
  from holoviews.element import Bars
  from .test_plot import TestPlotlyPlot
label_desc: Use image node_id 6 for calling the TestBarsPlot obj's underlying member method code with example usage: obj.test_bars_stacked_inverted() without return types