Bug 164517 - Cannot change chart type to Histogram by macro
Summary: Cannot change chart type to Histogram by macro
Status: UNCONFIRMED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Chart (show other bugs)
Version:
(earliest affected)
25.2.0.0 alpha0+
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Histogram-Chart
  Show dependency treegraph
 
Reported: 2024-12-30 15:38 UTC by Regina Henschel
Modified: 2025-01-05 21:55 UTC (History)
0 users

See Also:
Crash report or crash signature:


Attachments
document with macro to change the chart type (66.15 KB, application/vnd.oasis.opendocument.spreadsheet)
2024-12-30 15:38 UTC, Regina Henschel
Details
Similar to previous attachment, but for to change to column chart (19.86 KB, application/vnd.oasis.opendocument.spreadsheet)
2024-12-30 15:43 UTC, Regina Henschel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Regina Henschel 2024-12-30 15:38:40 UTC
Created attachment 198325 [details]
document with macro to change the chart type

Open attached document. It contains a line chart "only Points" and a macro to change the chart type to a Histogram chart.

Error: Changing does not work.

The chart type HistogramDiagram is listed as service in com::sun::star::chart. So it is not exactly the same problem as in bug 164516 for the new 'Of-Pie' chart. But the final solutions might be similar.

Problems might be:
HistogramDiagram is not contained in offapi/type_reference/offapi.idl
HistogramDiagram is missing in chart2/source/controller/chartapiwrapper/DiagramWrapper.cxx


But I'm not an expert for charts, so above might be irrelevant and other places might be missing.
Comment 1 Regina Henschel 2024-12-30 15:43:07 UTC
Created attachment 198326 [details]
Similar to previous attachment, but for to change to column chart

This document has the same macro as attachment 198324 [details]. Only that here the type is changed to a BarDiagram (and the amount of data values is reduced).

With this document you can test, that the macro for changing the type of the diagram works in principle.