Skip to content

Commit

Permalink
Adding changes from build igniteui-xplat-examples-output+PRs_2025.2.21.2
Browse files Browse the repository at this point in the history
  • Loading branch information
tfsbuild committed Feb 21, 2025
1 parent 218ddef commit c79702d
Show file tree
Hide file tree
Showing 13 changed files with 1,992 additions and 17,454 deletions.
11 changes: 7 additions & 4 deletions samples/charts/category-chart/selection-matcher/App.razor
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
@using IgniteUI.Blazor.Controls
@using IgniteUI.Blazor.Controls;
@using System;
@using System.Collections.Generic;
@using System.Collections;

<div class="container vertical">
<div class="legend-title">
Expand Down Expand Up @@ -56,7 +58,7 @@

private System.Threading.Timer _timer;

private void SelectionMatcherOnViewInit()
public void SelectionMatcherOnViewInit()
{
_timer = new System.Threading.Timer((_) =>
{
Expand All @@ -68,9 +70,9 @@
private void addSelection()
{
var chart = this.chart;

var data = (IList)chart.DataSource;
IgbChartSelection selection = new IgbChartSelection();
selection.Item = EnergyRenewableConsumption[1];
selection.Item = data[1];
IgbSeriesMatcher matcher = new IgbSeriesMatcher();
matcher.MemberPath = "Hydro";
matcher.MemberPathType = "ValueMemberPath";
Expand All @@ -80,7 +82,8 @@

IgbChartSelection selection2 = new IgbChartSelection();
selection2 = new IgbChartSelection();
selection2.Item = EnergyRenewableConsumption[2];
selection2.Item = data[2];

matcher = new IgbSeriesMatcher();
matcher.MemberPath = "Wind";
matcher.MemberPathType = "ValueMemberPath";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public static TitledStockData ConvertData(Dictionary<string, object>[] arr)
var date = ((JsonElement)json["date"]).GetString();
var parts = date.Split('-'); // "2020-01-01"
var item = new MultipleStocksItem();
item.Date = new DateTime(int.Parse(parts[0]), int.Parse(parts[1]) + 1, int.Parse(parts[2]));
item.Date = new DateTime(int.Parse(parts[0]), int.Parse(parts[1]) + 1, int.Parse(parts[2]),12,0,0);
item.Open = ((JsonElement)json["open"]).GetDouble();
item.High = ((JsonElement)json["high"]).GetDouble();
item.Low = ((JsonElement)json["low"]).GetDouble();
Expand Down
11 changes: 7 additions & 4 deletions samples/charts/data-chart/selection-matcher/App.razor
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
@using IgniteUI.Blazor.Controls
@using IgniteUI.Blazor.Controls;
@using System;
@using System.Collections.Generic;
@using System.Collections;

<div class="container vertical">
<div class="legend-title">
Expand Down Expand Up @@ -126,7 +128,7 @@

private System.Threading.Timer _timer;

private void SelectionMatcherOnViewInit()
public void SelectionMatcherOnViewInit()
{
_timer = new System.Threading.Timer((_) =>
{
Expand All @@ -138,9 +140,9 @@
private void addSelection()
{
var chart = this.chart;

var data = (IList)chart.DataSource;
IgbChartSelection selection = new IgbChartSelection();
selection.Item = EnergyRenewableConsumption[1];
selection.Item = data[1];
IgbSeriesMatcher matcher = new IgbSeriesMatcher();
matcher.MemberPath = "Hydro";
matcher.MemberPathType = "ValueMemberPath";
Expand All @@ -150,7 +152,8 @@

IgbChartSelection selection2 = new IgbChartSelection();
selection2 = new IgbChartSelection();
selection2.Item = EnergyRenewableConsumption[2];
selection2.Item = data[2];

matcher = new IgbSeriesMatcher();
matcher.MemberPath = "Wind";
matcher.MemberPathType = "ValueMemberPath";
Expand Down
4 changes: 2 additions & 2 deletions samples/charts/data-pie-chart/animation/App.razor
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@
Name="chart"
@ref="chart"
DataSource="EnergyGlobalDemand"
TransitionInMode="CategoryTransitionInMode.Auto"
TransitionInMode="CategoryTransitionInMode.FromZero"
TransitionInDuration="1000"
TransitionInSpeedType="TransitionInSpeedType.Random">
TransitionInSpeedType="TransitionInSpeedType.IndexScaled">
</IgbDataPieChart>

</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public static TitledStockData ConvertData(Dictionary<string, object>[] arr)
var date = ((JsonElement)json["date"]).GetString();
var parts = date.Split('-'); // "2020-01-01"
var item = new MultipleStocksItem();
item.Date = new DateTime(int.Parse(parts[0]), int.Parse(parts[1]) + 1, int.Parse(parts[2]));
item.Date = new DateTime(int.Parse(parts[0]), int.Parse(parts[1]) + 1, int.Parse(parts[2]),12,0,0);
item.Open = ((JsonElement)json["open"]).GetDouble();
item.High = ((JsonElement)json["high"]).GetDouble();
item.Low = ((JsonElement)json["low"]).GetDouble();
Expand Down
9,702 changes: 984 additions & 8,718 deletions samples/charts/financial-chart/data-legend-styling-props/StockGoogle.cs

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public static TitledStockData ConvertData(Dictionary<string, object>[] arr)
var date = ((JsonElement)json["date"]).GetString();
var parts = date.Split('-'); // "2020-01-01"
var item = new MultipleStocksItem();
item.Date = new DateTime(int.Parse(parts[0]), int.Parse(parts[1]) + 1, int.Parse(parts[2]));
item.Date = new DateTime(int.Parse(parts[0]), int.Parse(parts[1]) + 1, int.Parse(parts[2]),12,0,0);
item.Open = ((JsonElement)json["open"]).GetDouble();
item.High = ((JsonElement)json["high"]).GetDouble();
item.Low = ((JsonElement)json["low"]).GetDouble();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public static TitledStockData ConvertData(Dictionary<string, object>[] arr)
var date = ((JsonElement)json["date"]).GetString();
var parts = date.Split('-'); // "2020-01-01"
var item = new MultipleStocksItem();
item.Date = new DateTime(int.Parse(parts[0]), int.Parse(parts[1]) + 1, int.Parse(parts[2]));
item.Date = new DateTime(int.Parse(parts[0]), int.Parse(parts[1]) + 1, int.Parse(parts[2]),12,0,0);
item.Open = ((JsonElement)json["open"]).GetDouble();
item.High = ((JsonElement)json["high"]).GetDouble();
item.Low = ((JsonElement)json["low"]).GetDouble();
Expand Down
Loading

0 comments on commit c79702d

Please sign in to comment.