hi,
I'm dynamically generating graphs and binding the x-axis ,y-axis and title values to the values present inside a dataset.But if there is just one row in the datatable the legend displays the default settings(x-axis,y-axis value).
for(i=0;i<dt.Rows.Count;i++)
{
Steema.TeeChart.Styles.Line line1 = new Steema.TeeChart.Styles.Line(Chart1);
line1.YValues.DataMember = dt.Columns[6].ToString();
line1.LabelMember = dt.Columns[5].ToString();
line1.Title = dt.Rows["Name"].ToString();
line1.DataSource = dt;
}
If the number of rows in the datatable is more than one, then the title is displayed correctly.
Is there a solution to this...
Legend not displayed!
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi POP,
Yes, you can force it using:
Yes, you can force it using:
Code: Select all
tChart1.Legend.LegendStyle = Steema.TeeChart.LegendStyles.Series;
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |