https://bugs.documentfoundation.org/show_bug.cgi?id=167390
Bug ID: 167390
Summary: BASIC code can't display coloured 'mean value curves'
on a diagram
Product: LibreOffice
Version: 25.2.4.3 release
Hardware: x86-64 (AMD64)
OS: Windows (All)
Status: UNCONFIRMED
Severity: minor
Priority: medium
Component: BASIC
Assignee: [email protected]
Reporter: [email protected]
Created attachment 201667
--> https://bugs.documentfoundation.org/attachment.cgi?id=201667&action=edit
diagram image
Calc Diagrams generated by Basic Code, for example bar charts. Displaying 'mean
value curves' throuh Basic code doesn't pick the right colour. All curves are
black whereas each curve should (imo) automatically apply the colour of the
corresponding bar, as done throuh the interface.
See result of code below in the attached image
Is this a bug ? Perhaps it's possible to access each curve to set the colour ?
Code :
'---------------------------------
Sub OnClick_CaC_AffCourbesValMoy()
'---------------------------------
'Affiche ou non les courbes de valeurs moyennes
'ds le graph. (ongl. "Grahique - Mois en cours")
'Appelé par ctrl "CaC_AffCourbesValMoy"
Dim oFGraph As Object, oDiagr As Object
oFGraph = thisComponent.Sheets.getByName ("Graphique - Mois en cours")
oDiagr = oFGraph.Charts.getByName("Graph_ConsoProd").EmbeddedObject.Diagram
If oFGraph.getCellRangeByName ("Coche_AffCourbesValMoy").String = "Oui" Then
oDiagr.MeanValue = TRUE
Else
oDiagr.MeanValue = FALSE
End If
End Sub 'OnClick_CaC_AffCourbesValMoy
--
You are receiving this mail because:
You are the assignee for the bug.