how to display multiple lines in one crystal report chart

M

michael

Hi all,

i want to know how to display multiple lines in one crystal report chart in
asp.net

i wrote some codes but it always display 2 lines in separate chart(please
refer to the codes below), how can i display them in one chart? is there any
settings i need to configure?


=============
DataRow row=this.webDS.Line.NewLineRow();
row["grp"]="1";
row["rq"]="11";
row["val"]=10;
this.webDS.Line.Rows.Add(row);

row=this.webDS.Line.NewLineRow();
row["grp"]="1";
row["rq"]="11";
row["val"]=20;
this.webDS.Line.Rows.Add(row);

row=this.webDS.Line.NewLineRow();
row["grp"]="2";
row["rq"]="11";
row["val"]=13;
this.webDS.Line.Rows.Add(row);

row=this.webDS.Line.NewLineRow();
row["grp"]="2";
row["rq"]="11";
row["val"]=17;
this.webDS.Line.Rows.Add(row);

Web.Report.DayLineRpt rpt=new Web.Report.DayLineRpt();
rpt.SetDataSource(this.webDS);
this.ReportLine.ReportSource=rpt;
=============

regards,

benny
 

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

Members online

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,901
Latest member
Noble71S45

Latest Threads

Top