<UserControl x:Class="BeWo.View.Report.AnnualReport.AnnualReportChartControl"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:dxc="http://schemas.devexpress.com/winfx/2008/xaml/charts"
             xmlns:dxg="http://schemas.devexpress.com/winfx/2008/xaml/grid" mc:Ignorable="d" 
             d:DesignHeight="600" d:DesignWidth="700">
    <UserControl.Resources>
        <ResourceDictionary>
            <dxc:BrushOverlayConverter x:Key="brushOverlayConverter"/>
            <LinearGradientBrush x:Key="BorderBrush" StartPoint="0,0" EndPoint="0,1">
                <GradientStop Color="#7F08001C" Offset="0.0" />
                <GradientStop Color="#0008001C" Offset="1.0" />
            </LinearGradientBrush>
            <DataTemplate x:Key="labelTemplate">
                <Border Background="{Binding Path=Color, ConverterParameter=Gray, Converter={StaticResource brushOverlayConverter}}"
                        Opacity="0.75" CornerRadius="2" Padding="8,2,8,2">
                    <TextBlock Text="{Binding Text}"/>
                </Border>
            </DataTemplate>
        </ResourceDictionary>
    </UserControl.Resources>
    <Grid x:Name="root">
        <GroupBox x:Name="groupBox" Style="{StaticResource ObjectEditGroupBox}" Header="Jahresauswertung">
            <TabControl>
            <TabItem Header="Diagramm">
                <dxc:ChartControl Name="chart" BorderBrush="Transparent" BorderThickness="0" CustomDrawSeriesPoint="chart_CustomDrawSeriesPoint"  >

                    <dxc:ChartControl.Legend>
                        <dxc:Legend >
                    
                </dxc:Legend>
                    </dxc:ChartControl.Legend>

                    <dxc:ChartControl.Diagram>
                        <dxc:SimpleDiagram2D  >
                            <dxc:SimpleDiagram2D.Series>
                                <dxc:PieSeries2D x:Name="series" HoleRadiusPercent="0" ArgumentScaleType="Qualitative" ShowInLegend="True" Rotation="90" SweepDirection="Clockwise">
                                    <dxc:PieSeries2D.PointOptions>
                                        <dxc:PointOptions PointView="Argument" >

                                        </dxc:PointOptions>
                                    </dxc:PieSeries2D.PointOptions>
                                    <dxc:PieSeries2D.Model>
                                        <dxc:GlassPie2DModel/>
                                    </dxc:PieSeries2D.Model>
                                    <dxc:PieSeries2D.Label>
                                        <dxc:SeriesLabel ElementTemplate="{StaticResource ResourceKey=labelTemplate}"  dxc:PieSeries.LabelPosition="Outside" RenderMode="CustomShape"   />
                                    </dxc:PieSeries2D.Label>
                                    <dxc:PieSeries2D.Points>
                                        <dxc:SeriesPoint Argument="test" Value="2" />
                                        <dxc:SeriesPoint Argument="test2" Value="4" />
                                            <dxc:SeriesPoint Argument="test3" Value="4" />
                                            <dxc:SeriesPoint Argument="test4" Value="3" />
                                            <dxc:SeriesPoint Argument="test5" Value="1" />
                                            <dxc:SeriesPoint Argument="test6" Value="1" />
                                            <dxc:SeriesPoint Argument="test7" Value="1" />
                                            
                                        </dxc:PieSeries2D.Points>
                                </dxc:PieSeries2D>
                            </dxc:SimpleDiagram2D.Series>
                        </dxc:SimpleDiagram2D>
                    </dxc:ChartControl.Diagram>

                </dxc:ChartControl>
            </TabItem>
            <TabItem Header="Tabelle">
                <dxg:GridControl x:Name="gridControl">
                    <dxg:GridControl.View>
                        <dxg:TableView ShowGroupPanel="False" ShowGroupedColumns="false" ShowTotalSummary="False" NavigationStyle="Row" ShowColumnHeaders="True" />
                    </dxg:GridControl.View>
                </dxg:GridControl>
            </TabItem>
        </TabControl>
        </GroupBox>
    </Grid>
</UserControl>
