Skip to content

Commit 8cb1cf4

Browse files
Updated review changes.
1 parent 8d0a3fe commit 8cb1cf4

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

CollapseDataLabelVisibility/MainPage.xaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
</chart:SfCartesianChart.Resources>
2424

2525
<chart:SfCartesianChart.Title>
26-
<Label Text="Electricity Production from Various Sources (% of total)" MaxLines="2" LineBreakMode="WordWrap" Margin="0" HorizontalOptions="Fill" HorizontalTextAlignment="Center" VerticalOptions="Center" FontSize="16" />
26+
<Label Text="Sales of the product (% of total)" MaxLines="2" LineBreakMode="WordWrap" Margin="0" HorizontalOptions="Fill" HorizontalTextAlignment="Center" VerticalOptions="Center" FontSize="16" />
2727
</chart:SfCartesianChart.Title>
2828

2929

@@ -40,7 +40,7 @@
4040
</chart:SfCartesianChart.YAxes>
4141

4242
<chart:SfCartesianChart.Series>
43-
<chart:ColumnSeries ItemsSource="{Binding ElectricityProductionData}"
43+
<chart:ColumnSeries ItemsSource="{Binding Data}"
4444
LabelTemplate="{StaticResource labelTemplate}"
4545
Fill="#F7CB05"
4646
ShowDataLabels="True"

CollapseDataLabelVisibility/ViewModel/ViewModel.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ public ViewModel()
2424

2525
ElectricityProductionData = new ObservableCollection<ChartDataModel>()
2626
{
27-
new ChartDataModel("2005",76),
28-
new ChartDataModel("2004",45),
27+
new ChartDataModel("2004",76),
28+
new ChartDataModel("2005",45),
2929
new ChartDataModel("2006",55),
3030
new ChartDataModel("2007",30),
3131
new ChartDataModel("2008",60),

0 commit comments

Comments
 (0)