Jump to content
Software FX Community



Recommended Posts

 I noticed in another post that the ChartView was supposed to add support for ViewModel databinding to the series property on the Chart.  This would be helpful for people authoring controls where the user can select which columns to visualize on the chart.  I, however, have not found any real information on how to do this.

 I'm looking to databind to the X,Y and series properties of a chart,

<cfx:ChartView x:Name="chart1" ItemsSource="{Binding Path=DataSource}" Gallery="Bar">   <cfx:ChartView.Series>   <cfx:SeriesAttributes BindingPath="{Binding Path=Series1Column}" />

  <cfx:SeriesAttributes BindingPath="{Binding Path=Series2Column}" />   </cfx:ChartView.Series>   <cfx:ChartView.AxisX>   <cfx:Axis AutoScale="True" DataPath="{Binding Path=XAxis}" />   </cfx:ChartView.AxisX>   <cfx:ChartView.AxisY>   <cfx:Axis AutoScale="True" DataPath="{Binding Path=YAxis}"/>   </cfx:ChartView.AxisY>   </cfx:ChartView>


Although, it probably makes sense to have no YAxis value (Because that will be calculated automagically by the Series Values).  This code doesn't work.  How does one bind, in this way, to the Series Binding path, or even the SeriesAttributes object in a ViewModel?




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.

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...