1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
| <my:DataGrid.RowDetailsTemplate>
<DataTemplate>
<Grid>
<vc:Chart Width="500" Height="300" Theme="Theme1" BorderBrush="Gray">
<vc:Chart.Titles>
<vc:Title FontSize="16" Text="Taux d'occupation" Padding="6"/>
</vc:Chart.Titles>
<vc:Chart.Series>
<vc:DataSeries RenderAs="Pie" ShowInLegend="False" Bevel="False" LabelFontFamily="Verdana" LabelFontSize="10" LabelText="#AxisXLabel, #YValue">
<vc:DataSeries.DataPoints>
<vc:DataPoint AxisXLabel="occupé" YValue="{Binding Espace_occupé}" Color="Red"/>
<vc:DataPoint AxisXLabel="libre" YValue="{Binding Espace_libre}" Color="Green"/>
</vc:DataSeries.DataPoints>
</vc:DataSeries>
</vc:Chart.Series>
</vc:Chart>
</Grid>
</DataTemplate>
</my:DataGrid.RowDetailsTemplate> |
Partager