Jump to content
Software FX Community

Can not get XValues in the DataGrid Headers.


David V

Recommended Posts

I can not get the header values in the datagrid to change from points to the values.

I am populating the XValues

foreach (VolData vol in data_){

chart1.Data.X[index] = vol.Expiry.ToOADate();

index++;

}

and have set the XValuesAsHeaders flag

 

chart1.DataGrid.XValuesAsHeaders =

true;
Link to comment
Share on other sites

Are the X-Values shared for all the series or does each series have a separate set of X-Values.

To share the X-Values do:

chart.Data.X.Shared = true;

The strange thing is that Shared is true by default, so you must be setting per-series x-values either explicitly or through DataBinding.

 

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.

×
×
  • Create New...