How to display Column Chart in group of Y-Axis format on PDF using iTextSharp

Posted by Kunal09 under C# on 8/25/2011 | Points: 10 | Views : 2755 | Status : [Member] | Replies : 0

I am doing code in C# and want to display my column chart(Using System.Web.UI.DataVisualization.Charting) in the file attached with this question, means I want to display Y-Axis elements in grouping. I used iTextSharp for creating pdf and in that pdf I have created column chart.
I am binding column chart to my database, I gave here image for the refrence that means I want column chart in grouping of Y-Axis elements like attached image. I used below code in my project, but am not getting output exactly as given image.

chart.Series[0].ChartType = SeriesChartType.Column;
List<PriceList> lst = new List<PriceList>();
lst = myclass.GetPrice(id);

for ( int i = 0; i < lst.Count; i++)
chart.Series[0].Points.AddXY(lst[i].vchValue.ToString(), lst[i].Percentage);
chart.Series[0].Points.AddXY(lst[i].vchValue.ToString(), lst[i].mValue.ToString());

So, please help me



(No response found.)

Login to post response