hi! I have create chart using xml data...I have use below code in chart need datasource event... I have get the output as pichart with salesorpurchasedesc column...But Now I want the output piechart with labels as itemlineamount data but this data in percentage format...and each salesorpurchase desc data left side of the pie chart that referring each itemline amount data..please help me...
chart needdatasource event
string fileName = @"D:\text\jccantera\jccantera\jcc.xml";
var reader = new StreamReader(fileName);
XmlSerializer serializer = new XmlSerializer(typeof(NewDataSet));
var report = (NewDataSet)serializer.Deserialize(reader);
Telerik.Reporting.Processing.
Chart procChart = (Telerik.Reporting.Processing.Chart)sender;
DataSet ds = report;
procChart.DataSource = ds.Tables[
"BillItemLine"];
ChartSeries series = new ChartSeries();
series.DataYColumn =
"ItemLineAmount";
series.DataLabelsColumn =
"SalesOrPurchaseDesc";
series.Appearance.ShowLabelConnectors =
true;
JCChart.Series.Add(series);
procChart.DataSource = ds.Tables[
"BillItemLine"].DefaultView;
JCChart.DefaultType = Telerik.Reporting.Charting.
ChartSeriesType.Pie;
Xmldata
<
NewDataSet>
<
BillItemLine>
<
ItemLineAmount>844.35</ItemLineAmount>
<
ItemLineItemRefListID>350000-1247582799</ItemLineItemRefListID>
<
EstimateKey>Plan 804-1:804-1-502</EstimateKey>
<
Plan>804-1</Plan>
<
HouseAddress>3341 West Avenue, Beaumont</HouseAddress>
<
EstimateLineAmount>6000</EstimateLineAmount>
<
Name>804-1-502</Name>
<
SalesOrPurchaseDesc>Foundation Labor</SalesOrPurchaseDesc>
</
BillItemLine>
<
BillItemLine>
<
ItemLineAmount>84.87</ItemLineAmount>
<
ItemLineItemRefListID>370000-1247585073</ItemLineItemRefListID>
<
EstimateKey>Plan 804-1:804-1-633</EstimateKey>
<
Plan>804-1</Plan>
<
HouseAddress>3341 West Avenue, Beaumont</HouseAddress>
<
EstimateLineAmount>300</EstimateLineAmount>
<
Name>804-1-633</Name>
<
SalesOrPurchaseDesc>Portalet</SalesOrPurchaseDesc>
</
BillItemLine>