Bonjour

Partant de la procédure de ton exemple (CreationGraphique) tu peux
ajouter après le "end with" les lignes :

with oChart.diagram.getDataRowProperties(1)
        .SymbolType = com.sun.star.chart.ChartSymbolType.NONE 
        .setPropertyValue("LineWidth" ,150)
        .setPropertyValue("LineColor",5741852)
        .setPropertyValue("LineStyle", com.sun.star.drawing.LineStyle.DASH)
        .setPropertyValue("LineDashName", "2 Dots 1 Dash")
'       .setPropertyValue("LineDashName", "Fine dashed")
end with

oChart.diagram.getDataRowProperties(2).SymbolType =
com.sun.star.chart.ChartSymbolType.SYMBOL2

with oChart.diagram.getDataRowProperties(3)
        .SymbolType = -1
        .SymbolBitmapURL = "file:///C:/Users/Pierre-Yves/Documents/StroDur.gif"
end with

Ces lignes vont respectivement modifier les 3 séries de données:
- Sans symbole, définition de la largeur, couleur (vert) , mise en pointillé
avec nom à utiliser
(deux exemples ici : c'est le nom en anglais)
- Avec les symboles de type SYMBOL2
- Avec un symbole "perso" recherché ici sur le disque.

Tout ceci est bien sûr à adapter à tes besoins. Les possibilités sont
infinies...

Quelques liens :
http://api.libreoffice.org/
http://api.libreoffice.org/docs/common/ref/com/sun/star/chart/ChartSymbolType.html

Cordialement
Pierre-Yves



--
View this message in context: 
http://nabble.documentfoundation.org/information-a-propos-de-libreoffice-basic-pour-macro-tp4014875p4015706.html
Sent from the Users mailing list archive at Nabble.com.

-- 
Envoyez un mail à [email protected] pour savoir comment vous 
désinscrire
Les archives de la liste sont disponibles à 
http://listarchives.libreoffice.org/fr/users/
Tous les messages envoyés sur cette liste seront archivés publiquement et ne 
pourront pas être supprimés

Répondre à