Jump to content
Software FX Community

Crosstab causing my chart page to be blank?


TecheeGirl
 Share

Recommended Posts

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 chart

Chart1.DataSource = DS_WeeklyClosed.Tables[0];

 

Why is one type of code working and not the other?

 

Thanks!

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...