Bonjour tout le monde,
Je souhaiterais afficher dans un histogramme les statistiques d'utilisation de mon application que je récupère en fonction du nombre de connexion d'un utilisateur.
Problème, lorsque je teste mon application, j'ai une erreur :
Plotting of non-numeric values on the dependent axis is not supported.
Pourtant la valeur que j'ai mis dans DependentValueBinding="{Binding NbConnexion}" est un entier

Est ce que quelqu'un aurait une idée?

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
void client_GetNbConnexionCompleted(object sender, SilverlightApplication2.ServiceWCF.GetNbConnexionCompletedEventArgs e)
        {
            ConnexionDate CD = e.UserState as ConnexionDate;
            CD.NbConnexion = e.Result;
            ListeConnexion.Add(CD);
            ColumnSeries cs = Chart.Series[0] as ColumnSeries;
            cs.ItemsSource = ListeConnexion;
        }

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
<Grid>
                        <Border BorderBrush="Silver" BorderThickness="1" Height="178" Name="border10" VerticalAlignment="Top" Width="550" Background="White" CornerRadius="5" HorizontalAlignment="Left">
                            <charting:Chart x:Name="Chart" Title="Statistiques d'utilisation" Height="209" Width="499" Background="White" BorderBrush="{x:Null}" Foreground="#FFFF6600" HorizontalContentAlignment="Center" HorizontalAlignment="Center" VerticalAlignment="Center">
                                <charting:Chart.Series>
                                    <charting:ColumnSeries Title="1973" IndependentValueBinding="{Binding Mois}" DependentValueBinding="{Binding NbConnexion}" />
                                </charting:Chart.Series>
                            </charting:Chart>
                        </Border>
                        </Grid>