TecheeGirl Posted January 20, 2012 Report Share Posted January 20, 2012 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! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.