-
Notifications
You must be signed in to change notification settings - Fork 0
/
MainWindow.xaml
28 lines (26 loc) · 1.35 KB
/
MainWindow.xaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<Window
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:dxc="http://schemas.devexpress.com/winfx/2008/xaml/charts" x:Class="ColorObjectColorizerExample.MainWindow"
Title="MainWindow" Height="720" Width="1280">
<Window.Resources>
<XmlDataProvider x:Key="dataProvider" Source="Data/GDP.xml"/>
</Window.Resources>
<Grid DataContext="{Binding Source={StaticResource dataProvider}}">
<dxc:ChartControl>
<dxc:ChartControl.Titles>
<dxc:Title Content="GDP for G20" HorizontalAlignment="Center"/>
</dxc:ChartControl.Titles>
<dxc:XYDiagram2D>
<dxc:BarSideBySideSeries2D DisplayName="GDP"
DataSource="{Binding XPath=/G20HPIs/CountryStatistics}"
ArgumentDataMember="Country" ValueDataMember="Product"
ColorDataMember="NationalColor">
<dxc:BarSideBySideSeries2D.Colorizer>
<dxc:ColorObjectColorizer/>
</dxc:BarSideBySideSeries2D.Colorizer>
</dxc:BarSideBySideSeries2D>
</dxc:XYDiagram2D>
</dxc:ChartControl>
</Grid>
</Window>