Based on my understanding, setting the rotated property of a bar chart to True should draw the bars horizontally. Adding c.rotated to the code below still generates verticle bars. Is this functionality broken?
c = arcpy.Chart("chart1")
c.title = "Land cover in Gettysburg Battlefield"
c.rotated = True
c.type = "bar"
c.xAxis.field = "COVER"
c.bar.aggregation = "COUNT"
c.xAxis.title = "Land cover"
c.yAxis.title = "Number of polygons"
prj = arcpy.mp.ArcGISProject("CURRENT")
mxd = prj.listMaps()[0]
thelayer = mxd.listLayers()[0]
c.dataSource = thelayer
c
Here's the chart
From this documentation page, here's the description of the bar chart rotated property:
Indicates whether the chart is viewed vertically or horizontally. The chart displays vertically by default. True rotates the chart horizontally. False displays the chart vertically.