Jump to content
Software FX Community

LabelPath from within an ItemsControl


VinnieP79
 Share

Recommended Posts

I have a single DataTable from which I'm generating multiple Charts.  I do this by grouping the DataTable with a CollectionViewSource and placing the chart within an ItemsControl whose ItemsSource is bound to the CollectionViewSource.

 So far, I'm able to correctly pull series data by using the BindingPath on the SeriesAttribute:

<cfx:Chart.Series><cfx:SeriesAttributes BindingPath="Value" /></cfx:Chart.Series>

Where Value is the name of a column in my DataTable.  This tells me I have my the Chart's ItemsSource set up correctly.However, I'm not able to pull labels by using the LabelPath on the Axis:

<cfx:Chart.AxisX><cfx:Axis LabelPath="ValueLabel"><cfx:Axis.Grids><cfx:Grids /></cfx:Axis.Grids></cfx:Axis></cfx:Chart.AxisX>

Where ValueLabel is another column in my DataTable.  I've tested this without the CollectionViewSource and ItemsControl and LabelPath works just fine.

 I have a sample application that illustrates my issue, and I'd be happy to e-mail it to anyone who thinks they may have a resolution.  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...