Skip to content

How to display column chart in group of y-axis format on pdf using itextsharp

dev 0

Asked Aug 24, 2011, 1:53 AM EDT3 answers
Share
LinkedInX
Hi,
Im doing code in C# and  want to display my column chart(Using System.Web.UI.DataVisualization.Charting) in below format , means want to display Y -axis elements in grouping.
I used itextsharp for creating pdf and in that pdf i have created column chart.
so plz help me.

3 Answers

Know the answer? Post it. Somebody with the same question will find it here.

  • Suthish Nair
    0
    Save the chart as image and export to pdf.
    0
  • 0
    But I am binding column chart to my database , i dont want just a image  like above, i gave here image for just refrence that means i want column chart in grouping of y axis elements  like above image. 

    I used below code in my project, but am not getting output exactly as above 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());
    }
    0
  • Suthish Nair
    0
    try using StackedGroupName property..
    0