Value label for owc chart

A

ad

I want to add value to the chart of OWC.
I used the codes below, but I can't see the value.
How can I do?
----------------------------------------------------------------------------
----
frm1.ChartSpace1.Clear();
frm1.ChartSpace1.DataSource = frm1.PivotTable1;
frm1.ChartSpace1.style.visibility = "visible";
frm1.ChartSpace1.HasChartSpaceLegend= true

frm1.ChartSpace1.Charts(0).Axes(frm1.ChartSpace1.Constants.chAxisPositionVal
ue).Scaling.Minimum=0;

c= frm1.ChartSpace1.Constants;
aChart=frm1.ChartSpace1.Charts(0);
aChart.Type = c.chChartTypePieExploded;
aChart.SeriesCollection(0).DataLabelsCollection.Add;

dl=aChart.SeriesCollection(0).DataLabelsCollection(0);
dl.HasValue = true;
dl.HasPercentage = true;
 
G

Guest

From your code i can only see you are adding datalabels.
THose are not the values you want to plot. To add the
values you want to plot you do this:

cht.seriescollection(0).SetData c.chDimValues,
c.chdataliteral, ifn

where cht is the chart, c is the chartspace.constants
object and ifn is an array you use to provide the values.

Hope that helps.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top