This question is locked. New answers and comments are not allowed.
Hello all !
(I warn you immediately, my native language is French, so sorry for any mistake)
I started develop a WindowsPhone application which use Telerik chart controls. I see how easy it is to create graphs (in xaml) but it's limited in a case where I don't know the number of series to construct.
For example :
I have two entities :
(I don't show it but there is PropertyChanged notification system)
In my viewmodel, I do db request that returns a List of "Indicateur".
Here is my problem :
There is a complex tree :
An "Indicateur" has a list of "Information". Each Information has a "Valeur" (value).
Is there a way to dynamically build the LineSeries points?
Infact, I am quite familiar with this kind of data manipulation:
Thank you in advance for your help!
(I warn you immediately, my native language is French, so sorry for any mistake)
I started develop a WindowsPhone application which use Telerik chart controls. I see how easy it is to create graphs (in xaml) but it's limited in a case where I don't know the number of series to construct.
For example :
I have two entities :
public
class
Indicateur
{
public
virtual
long
IdProjet {
get
;
set
;}
public
virtual
Guid? IdIndicateur {
get
;
set
;}
public
virtual
string
Nom {
get
;
set
;}
public
virtual
string
TypeUnite {
get
;
set
;}
public
virtual
long
? Limite1 {
get
;
set
;}
public
virtual
long
? Limite2 {
get
;
set
;}
public
virtual
DateTime DateCreation {
get
;
set
;}
public
virtual
IList<Information> Valeurs {
get
;
set
;}
}
public
class
Information
{
public
virtual
long
? IdInformation {
get
;
set
;}
public
virtual
Guid IdIndicateur {
get
;
set
;}
public
virtual
decimal
Valeur {
get
;
set
;}
public
virtual
DateTime DateCreation {
get
;
set
;}
}
In my viewmodel, I do db request that returns a List of "Indicateur".
Here is my problem :
There is a complex tree :
An "Indicateur" has a list of "Information". Each Information has a "Valeur" (value).
Is there a way to dynamically build the LineSeries points?
Infact, I am quite familiar with this kind of data manipulation:
<
ListBox
ItemsSource
=
"{Binding Indicateurs, Source={StaticResource vueModeleIndicateur}}"
>
<
ListBox.ItemTemplate
>
<
DataTemplate
>
<
ListBox
ItemsSource
=
"{Binding Valeurs}"
>
<
ListBox.ItemTemplate
>
<
DataTemplate
>
<
TextBlock
Text
=
"{Binding Valeur}"
/>
</
DataTemplate
>
</
ListBox.ItemTemplate
>
</
ListBox
>
</
DataTemplate
>
</
ListBox.ItemTemplate
>
</
ListBox
>
Thank you in advance for your help!