I am having a little trouble getting to grips with the cart control in silverlight. I have a ViewModel with an Observable collection of "FleetUtilisations" and I want to display them in the chart.
<
<igChart:XamWebChart x:Name="Chart1">
<igChart:XamWebChart.Series>
<igChart:Series ChartType="Bar" DataSource="{Binding FleetUtilisations}" DataMapping="Value=Utilisation;Label=BusinessUnit"> </igChart:Series>
</igChart:XamWebChart.Series>
</igChart:XamWebChart>
I am not sure why this is not displaying anything?
P.S. There must be an easyer way to past in code!
I have found that this only works if you create the Series in code! Is the controls DataContext not available in a series?
this is fixed in the upcoming service release for NetAdvantage for Silverlight Data Visualization, which should be released any day now.
We're on v9.1 and the issue is still there I believe.
<igChart:Series ChartType="Line" Label="Price History" DataMapping="Value=OpeningPrice; Label=TradingDate"
DataSource="{Binding SecurityPriceHistory}">
Above doesn't work
Below does:
Any comments?
Series priceHistorySeries = new
Series
{
Label =
"Price History via Code"
,
DataMapping =
"Value=OpeningPrice; Label=TradingDate"
DataSource =
this
.Model.SecurityPriceHistory
have you tried downloading the latest service release for 9.1?