For Programmers: Free Programming Magazines  


Home > Archive > Visual Basic Controls > January 2006 > Problems controlling MSChart Datapointlabels









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Problems controlling MSChart Datapointlabels
Christoph Moebus

2006-01-25, 4:16 am

Hello NG,
I have a problem controlling the Datapoint Labels using the ChartType 2dPie
I would like to show the Value and the percentage of each Pie slice.
When I use the following code, there are two rectangles between the value
and the percentage, what looks very silly....
These rectangles are probably placeholders for a line feed, or? How can I
get rid of them???

With
MSChartProjektkosten.Plot.SeriesCollection(1).DataPoints(-1).DataPointLabel
.TextLayout.WordWrap = True
.Component = 3
.PercentFormat = "#0,0%"
.ValueFormat = "#.#0,00" & "?"
End With

I also tried it with the following code, but this also does not work.
The Property .custom has no effect at all and the .Text creates an errror
message.

With
MSChartProjektkosten.Plot.SeriesCollection(1).DataPoints(-1).DataPointLabel
.Custom = True
.TextLayout.WordWrap = True
.Text = Value & Text
End With

I hope someone can help me with the "well documented" MSChart...
Greetings
Christoph Moebus


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2009 codecomments.com