https://bugs.documentfoundation.org/show_bug.cgi?id=164516

            Bug ID: 164516
           Summary: Cannot change chart type to 'Of-Pie' chart by macro
           Product: LibreOffice
           Version: 25.2.0.0 alpha0+
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Chart
          Assignee: [email protected]
          Reporter: [email protected]

Created attachment 198324
  --> https://bugs.documentfoundation.org/attachment.cgi?id=198324&action=edit
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.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to