Created attachment 198324 [details] document with macro to change the chart type Open attached document. It contains a column chart and a macro to change the chart type. The parts in the macro to change the chart type are in comments in the attached file. Rem Change to a pie chart. This works. 'oDiagram = oChartDoc.createInstance( "com.sun.star.chart.PieDiagram" ) 'oChartDoc.setDiagram(oDiagram) Rem Change to a of-pie chart. This does not work. 'oDiagram = oChartDoc.createInstance( "com.sun.star.chart.BarOfPieDiagram" ) 'oChartDoc.setDiagram(oDiagram) To test one or the other you need to remove the ' character at start of the lines. A reason that "BarOfPieDiagram" does not work might be, that it is not a service of com.sun.star.chart and that it is not included in offapi/type_reference/offapi.idl.
Reproducible with all versions also with OOo
Sorry @Regina, but BarOfPieDiagram doesn't appear as an option to select the chart type on the UI
Created attachment 198339 [details] Screenshot of chart in edit mode The option in the UI is the chart type "Of-Pie". It has two sub-types: "Bar-of-pie Chart" and "Pie-of-pie Chart", see screenshot. You can see the chart type "com.sun.star.chart.BarOfPieDiagram" in the property "DiagramType" using the Development tools. The way is: Object > Sheets > Sheet1 (or where the chart is for you) > Charts > Object 1 (or what number it has for you). Then in its 'Properties': EmbeddedObject > Diagram > DiagramType. Do not use "Current Selection" in the Development tools. That does not work well for chart objects. This diagram type is new in LO 24.8. So for testing you cannot use an earlier version of LibreOffice. You should use a daily build for testing to get the fixes included in the meantime.
Kurt, I have added you to CC because you are involved in 'Of-Pie' charts.
Thanks @Regina I can see it with 25.2/25.8