I am facing a problem while coding VBA. I have created a pie chart and every Method that is available to display the Data used for the Chart is not very good looking. The only one that fits my needs is the ElementDataLabelCallout Method, but it only shows the percentage and not like for example ElementDataLabelShow the raw data. Is there a way to edit the VBA Code so that the Callout Method displays the data instead of the percentages ?
Set chrt = Sheets(Chart).ChartObjects.Add(Left:=0, Width:=540, Top:=0, Height:=420)
chrt.Chart.ChartType = xlPie
chrt.Chart.SetSourceData Source:=Sheets(Sheetname).Range("A1:B6"), PlotBy:=xlColumns
chrt.Chart.SetElement msoElementDataLabelCallout
This is how I did it but it displays only the percentage in the pie chart.