Skip to content

Commit

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

Co-authored-by: tfsbuild <[email protected]>
  • Loading branch information
azure-pipelines[bot] and tfsbuild authored Jan 4, 2024
1 parent 10257e5 commit db1943c
Show file tree
Hide file tree
Showing 7 changed files with 197 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@
@ref="chart"
ChartType="CategoryChartType.Column"
DataSource="SalesData"
InitialGroups="MonthName">
InitialGroups="MonthName"
InitialHighlightFilter="Country ne 'UK'"
HighlightedValuesDisplayMode="SeriesHighlightedValuesDisplayMode.Hidden">
</IgbCategoryChart>

</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
<IgbDataChart
ShouldAutoExpandMarginForInitialLabels="true"
ComputedPlotAreaMarginMode="ComputedPlotAreaMarginMode.Series"
HighlightedValuesDisplayMode="SeriesHighlightedValuesDisplayMode.Hidden"
Name="chart"
@ref="chart">
<IgbCategoryXAxis
Expand All @@ -46,7 +47,8 @@
XAxisName="xAxis"
YAxisName="yAxis"
DataSource="OnlineTrafficHighlightTotals"
ValueMemberPath="Value">
ValueMemberPath="Value"
HighlightedDataSource="OnlineTrafficHighlightDesktopOnly">
</IgbColumnSeries>

</IgbDataChart>
Expand Down Expand Up @@ -94,4 +96,17 @@
}
}

private OnlineTrafficHighlightDesktopOnly _onlineTrafficHighlightDesktopOnly = null;
public OnlineTrafficHighlightDesktopOnly OnlineTrafficHighlightDesktopOnly
{
get
{
if (_onlineTrafficHighlightDesktopOnly == null)
{
_onlineTrafficHighlightDesktopOnly = new OnlineTrafficHighlightDesktopOnly();
}
return _onlineTrafficHighlightDesktopOnly;
}
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
using System;
using System.Collections.Generic;
public class OnlineTrafficHighlightDesktopOnlyItem
{
public string Category { get; set; }
public double Value { get; set; }
}

public class OnlineTrafficHighlightDesktopOnly
: List<OnlineTrafficHighlightDesktopOnlyItem>
{
public OnlineTrafficHighlightDesktopOnly()
{
this.Add(new OnlineTrafficHighlightDesktopOnlyItem()
{
Category = @"Apparel",
Value = 27
});
this.Add(new OnlineTrafficHighlightDesktopOnlyItem()
{
Category = @"Beauty",
Value = 29
});
this.Add(new OnlineTrafficHighlightDesktopOnlyItem()
{
Category = @"Travel",
Value = 41
});
this.Add(new OnlineTrafficHighlightDesktopOnlyItem()
{
Category = @"Grocery",
Value = 37
});
this.Add(new OnlineTrafficHighlightDesktopOnlyItem()
{
Category = @"Energy",
Value = 58
});
this.Add(new OnlineTrafficHighlightDesktopOnlyItem()
{
Category = @"Home Supply",
Value = 35
});
this.Add(new OnlineTrafficHighlightDesktopOnlyItem()
{
Category = @"Financial",
Value = 58
});
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@
ShouldAutoExpandMarginForInitialLabels="true"
ComputedPlotAreaMarginMode="ComputedPlotAreaMarginMode.Series"
Name="chart"
@ref="chart">
@ref="chart"
HighlightedValuesDisplayMode="SeriesHighlightedValuesDisplayMode.Hidden">
<IgbCategoryXAxis
Name="xAxis"
@ref="xAxis"
Expand All @@ -44,7 +45,8 @@
XAxisName="xAxis"
YAxisName="yAxis"
DataSource="CountryRenewableElectricity"
ValueMemberPath="Europe">
ValueMemberPath="Europe"
HighlightedDataSource="CountryRenewableElectricityFiltered">
</IgbColumnSeries>

<IgbColumnSeries
Expand All @@ -53,7 +55,8 @@
XAxisName="xAxis"
YAxisName="yAxis"
DataSource="CountryRenewableElectricity"
ValueMemberPath="China">
ValueMemberPath="China"
HighlightedDataSource="CountryRenewableElectricityFiltered">
</IgbColumnSeries>

<IgbColumnSeries
Expand All @@ -62,7 +65,8 @@
XAxisName="xAxis"
YAxisName="yAxis"
DataSource="CountryRenewableElectricity"
ValueMemberPath="America">
ValueMemberPath="America"
HighlightedDataSource="CountryRenewableElectricityFiltered">
</IgbColumnSeries>

</IgbDataChart>
Expand Down Expand Up @@ -114,4 +118,17 @@
}
}

private CountryRenewableElectricityFiltered _countryRenewableElectricityFiltered = null;
public CountryRenewableElectricityFiltered CountryRenewableElectricityFiltered
{
get
{
if (_countryRenewableElectricityFiltered == null)
{
_countryRenewableElectricityFiltered = new CountryRenewableElectricityFiltered();
}
return _countryRenewableElectricityFiltered;
}
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
using System;
using System.Collections.Generic;
public class CountryRenewableElectricityFilteredItem
{
public string Year { get; set; }
public double Europe { get; set; }
public double China { get; set; }
public double America { get; set; }
}

public class CountryRenewableElectricityFiltered
: List<CountryRenewableElectricityFilteredItem>
{
public CountryRenewableElectricityFiltered()
{
this.Add(new CountryRenewableElectricityFilteredItem()
{
Year = @"2009",
Europe = 26,
China = 14,
America = 12
});
this.Add(new CountryRenewableElectricityFilteredItem()
{
Year = @"2010",
Europe = 29,
China = 17,
America = 18
});
this.Add(new CountryRenewableElectricityFilteredItem()
{
Year = @"2011",
Europe = 50,
China = 21,
America = 22
});
this.Add(new CountryRenewableElectricityFilteredItem()
{
Year = @"2012",
Europe = 48,
China = 20,
America = 20
});
this.Add(new CountryRenewableElectricityFilteredItem()
{
Year = @"2013",
Europe = 37,
China = 23,
America = 26
});
this.Add(new CountryRenewableElectricityFilteredItem()
{
Year = @"2014",
Europe = 26,
China = 34,
America = 21
});
this.Add(new CountryRenewableElectricityFilteredItem()
{
Year = @"2015",
Europe = 55,
China = 38,
America = 12
});
this.Add(new CountryRenewableElectricityFilteredItem()
{
Year = @"2016",
Europe = 7,
China = 55,
America = 38
});
this.Add(new CountryRenewableElectricityFilteredItem()
{
Year = @"2017",
Europe = 57,
China = 101,
America = 32
});
this.Add(new CountryRenewableElectricityFilteredItem()
{
Year = @"2018",
Europe = 23,
China = 112,
America = 19
});
this.Add(new CountryRenewableElectricityFilteredItem()
{
Year = @"2018",
Europe = 18,
China = 118,
America = 22
});
this.Add(new CountryRenewableElectricityFilteredItem()
{
Year = @"2019",
Europe = 40,
China = 70,
America = 26
});
}
}
4 changes: 3 additions & 1 deletion samples/charts/data-chart/chart-highlight-filter/App.razor
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
<IgbDataChart
ShouldAutoExpandMarginForInitialLabels="true"
ComputedPlotAreaMarginMode="ComputedPlotAreaMarginMode.Series"
HighlightedValuesDisplayMode="SeriesHighlightedValuesDisplayMode.Hidden"
Name="chart"
@ref="chart">
<IgbCategoryXAxis
Expand All @@ -46,7 +47,8 @@
XAxisName="xAxis"
YAxisName="yAxis"
DataSource="OlympicMedalsTopCountriesWithTotals"
ValueMemberPath="Total">
ValueMemberPath="Total"
HighlightedValueMemberPath="America">
</IgbColumnSeries>

</IgbDataChart>
Expand Down
7 changes: 3 additions & 4 deletions samples/charts/toolbar/custom-tool/App.razor
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,14 @@
</div>

@code {
protected override async Task OnInitializedAsync()
{
this.ToolbarCustomIconOnViewInit();
}

protected override async Task OnAfterRenderAsync(bool firstRender)
{
var toolbar = this.toolbar;

if (firstRender) {
this.ToolbarCustomIconOnViewInit();
}
}

private IgbToolbar toolbar;
Expand Down

0 comments on commit db1943c

Please sign in to comment.