Skip to content

Commit

Permalink
Adding changes from build igniteui-xplat-examples-output+PRs_2024.1.1…
Browse files Browse the repository at this point in the history
…7.3 (#604)

Co-authored-by: tfsbuild <[email protected]>
  • Loading branch information
azure-pipelines[bot] and tfsbuild authored Jan 18, 2024
1 parent f73f629 commit e1ffb7d
Showing 1 changed file with 34 additions and 7 deletions.
41 changes: 34 additions & 7 deletions samples/charts/category-chart/data-aggregations/App.razor
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
@using IgniteUI.Blazor.Controls
@using IgniteUI.Blazor.Controls;
@using System;
@using System.Linq;

<div class="container vertical">
<div class="options vertical">
Expand All @@ -10,39 +13,42 @@
Name="propertyEditorPanel1"
@ref="propertyEditorPanel1">
<IgbPropertyEditorPropertyDescription
PropertyPath="InitialGroups"
PropertyPath="InitialGroupsHandler"
Name="InitialGroups"
@ref="initialGroups"
Label="Initial Groups"
ValueType="PropertyEditorValueType.EnumValue"
ShouldOverrideDefaultEditor="true"
DropDownNames="@(new string[] { "Country", "Product", "MonthName", "Year" })"
DropDownValues="@(new string[] { "Country", "Product", "MonthName", "Year" })"
PrimitiveValue="@("Country")">
PrimitiveValue="@("Country")"
Changed="EditorChangeUpdateInitialGroups">
</IgbPropertyEditorPropertyDescription>

<IgbPropertyEditorPropertyDescription
PropertyPath="InitialSummaries"
PropertyPath="InitialSummariesHandler"
Name="InitialSummaries"
@ref="initialSummaries"
Label="Initial Summaries"
ValueType="PropertyEditorValueType.EnumValue"
ShouldOverrideDefaultEditor="true"
DropDownNames="@(new string[] { "Sum(Sales)", "Avg(Sales)", "Min(Sales)", "Max(Sales)", "Count(Sales)" })"
DropDownNames="@(new string[] { "Sum(Sales) as Sales", "Avg(Sales) as Sales", "Min(Sales) as Sales", "Max(Sales) as Sales", "Count(Sales) as Sales" })"
DropDownValues="@(new string[] { "Sum(Sales) as Sales", "Avg(Sales) as Sales", "Min(Sales) as Sales", "Max(Sales) as Sales", "Count(Sales) as Sales" })"
PrimitiveValue="@("Sum(Sales) as Sales")">
PrimitiveValue="@("Sum(Sales) as Sales")"
Changed="EditorChangeUpdateInitialSummaries">
</IgbPropertyEditorPropertyDescription>

<IgbPropertyEditorPropertyDescription
PropertyPath="GroupSorts"
PropertyPath="GroupSortsHandler"
Name="GroupSorts"
@ref="groupSorts"
Label="Sort Groups"
ValueType="PropertyEditorValueType.EnumValue"
ShouldOverrideDefaultEditor="true"
DropDownNames="@(new string[] { "Sales Desc", "Sales Asc" })"
DropDownValues="@(new string[] { "Sales Desc", "Sales Asc" })"
PrimitiveValue="@("Sales Desc")">
PrimitiveValue="@("Sales Desc")"
Changed="EditorChangeUpdateGroupSorts">
</IgbPropertyEditorPropertyDescription>

</IgbPropertyEditorPanel>
Expand Down Expand Up @@ -93,6 +99,27 @@
private IgbPropertyEditorPropertyDescription groupSorts;
private IgbCategoryChart chart;

public void EditorChangeUpdateInitialGroups(IgbPropertyEditorPropertyDescriptionChangedEventArgs args)
{
var intialGroupVal = args.NewValue.ToString();
chart.InitialGroups = null;
chart.InitialGroups = intialGroupVal;
}

public void EditorChangeUpdateInitialSummaries(IgbPropertyEditorPropertyDescriptionChangedEventArgs args)
{
var intialSummariesVal = args.NewValue.ToString();
chart.InitialSummaries = null;
chart.InitialSummaries = intialSummariesVal;
}

public void EditorChangeUpdateGroupSorts(IgbPropertyEditorPropertyDescriptionChangedEventArgs args)
{
var groupSortsVal = args.NewValue.ToString();
chart.GroupSorts = null;
chart.GroupSorts = groupSortsVal;
}

private SalesData _salesData = null;
public SalesData SalesData
{
Expand Down

0 comments on commit e1ffb7d

Please sign in to comment.