I am trying to create a crosstab grid under my chart via ChartFX7 and asp.net
If it just add a grid, the table shows up under the chart. But if it change it to a crosstab object, the page comes up with a blank box where the chart goes.
Here is the code.... Am I missing something?
This is the code that throws a blank chart page.
CrosstabDataProvider cfxCT = new CrosstabDataProvider(); cfxCT.DataSource = DT_WeeklyClosed; Chart1.DataSourceSettings.Fields.Add(new FieldMap("Weekend", FieldUsage.ColumnHeading )); Chart1.DataSourceSettings.Fields.Add(
new FieldMap("Weekly Closed Avg", FieldUsage.RowHeading ));Chart1.DataSourceSettings.Fields.Add(new FieldMap("WeeklyClosedAvg", FieldUsage.Value)); Chart1.DataSource = cfxCT;
But, this code below will show the table below the chart.
Chart1.DataSourceSettings.Fields.Add(new FieldMap("WeekEnd", FieldUsage.XValue)); Chart1.DataSourceSettings.Fields.Add(
new FieldMap("WeeklyClosedAvg", FieldUsage.Value));
//Assign the data source to the chartChart1.DataSource = DS_WeeklyClosed.Tables[0];
Why is one type of code working and not the other?
Thanks!