This question is locked. New answers and comments are not allowed.
Hi - I am trying to create a dashboard with various graphs etc. I am using RIA services, and domain data sources.
I want to create a line graph that uses data from two different domain data sources, creating a series for each.
The problem is that the ItemsSource can only be bound to one object, and I want to write everything declaratively - i.e. I don't want to have to write code-behind to go and collate the two result sets, add them to a list and then set that as the ItemsSource.
The reason being that I want to utilise the parameter databinding functions of the domain data source - i.e. so when a user changes a filter parameter, both graph series get re-drawn.
My domain data sources are as follows:
The chart should (ideally) show a splinearea series for each result set. The two queries both return a list of the same object type - the object has two int properties, one for the hour of the day, the other for the no transactions requested/booked.
Any help/advice much appreciated!
I want to create a line graph that uses data from two different domain data sources, creating a series for each.
The problem is that the ItemsSource can only be bound to one object, and I want to write everything declaratively - i.e. I don't want to have to write code-behind to go and collate the two result sets, add them to a list and then set that as the ItemsSource.
The reason being that I want to utilise the parameter databinding functions of the domain data source - i.e. so when a user changes a filter parameter, both graph series get re-drawn.
My domain data sources are as follows:
<UserControl.Resources><riaControls:DomainDataSourcex:Key="RequestsSource"AutoLoad="True"QueryName="GetRequestsPerHour"><riaControls:DomainDataSource.DomainContext><my:ReportingDataContext/></riaControls:DomainDataSource.DomainContext></riaControls:DomainDataSource><riaControls:DomainDataSourcex:Key="BookingsSource"AutoLoad="True"QueryName="GetBookingsPerHour"><riaControls:DomainDataSource.DomainContext><my:ReportingDataContext/></riaControls:DomainDataSource.DomainContext></riaControls:DomainDataSource></UserControl.Resources>
The chart should (ideally) show a splinearea series for each result set. The two queries both return a list of the same object type - the object has two int properties, one for the hour of the day, the other for the no transactions requested/booked.
Any help/advice much appreciated!