Skip to content

Changes from igniteui-xplat-examples-output+PRs_2025.2.21.1 #738

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export class MultipleStocks extends Array<Array<StockItem>> {
for (let json of jsonData) {
let parts = json.date.split("-"); // "2020-01-01"
let item = new StockItem();
item.date = new Date(parts[0], parts[1], parts[2]);
item.date = new Date(parts[0], parts[1], parts[2],13,0,0);
item.open = json.open;
item.high = json.high;
item.low = json.low;
Expand Down
13 changes: 7 additions & 6 deletions samples/charts/data-chart/selection-matcher/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -138,18 +138,19 @@ export default class Sample extends React.Component<any, any> {
var chart = this.chart;

this._timer = setInterval(() => {
var matcher = new IgrSeriesMatcher();

var selection = new IgrChartSelection();
selection.item = this.energyRenewableConsumption[1];
var matcher = new IgrSeriesMatcher();
var data = this.energyRenewableConsumption;

var selection = new IgrChartSelection();
selection.item = data[1];
matcher.memberPath = "hydro";
matcher.memberPathType = "ValueMemberPath";
selection.matcher = matcher;

chart.selectedSeriesItems.add(selection);

var selection2 = new IgrChartSelection();
selection2.item = this.energyRenewableConsumption[2];
var selection2 = new IgrChartSelection();
selection2.item = data[2];
matcher.memberPath = "wind";
matcher.memberPathType = "ValueMemberPath";
selection2.matcher = matcher;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ export class ContinentsBirthRateItem {
Object.assign(this, init);
}

public year: string;
public asia: number;
public africa: number;
public europe: number;
public northAmerica: number;
public southAmerica: number;
public oceania: number;
public Year: string;
public Asia: number;
public Africa: number;
public Europe: number;
public NorthAmerica: number;
public SouthAmerica: number;
public Oceania: number;

}
export class ContinentsBirthRate extends Array<ContinentsBirthRateItem> {
Expand All @@ -20,83 +20,83 @@ export class ContinentsBirthRate extends Array<ContinentsBirthRateItem> {
const newItems = [
new ContinentsBirthRateItem(
{
year: `1950`,
asia: 62,
africa: 13,
europe: 10,
northAmerica: 4,
southAmerica: 8,
oceania: 1
Year: `1950`,
Asia: 62,
Africa: 13,
Europe: 10,
NorthAmerica: 4,
SouthAmerica: 8,
Oceania: 1
}),
new ContinentsBirthRateItem(
{
year: `1960`,
asia: 68,
africa: 12,
europe: 15,
northAmerica: 4,
southAmerica: 9,
oceania: 2
Year: `1960`,
Asia: 68,
Africa: 12,
Europe: 15,
NorthAmerica: 4,
SouthAmerica: 9,
Oceania: 2
}),
new ContinentsBirthRateItem(
{
year: `1970`,
asia: 80,
africa: 17,
europe: 11,
northAmerica: 3,
southAmerica: 9,
oceania: 1
Year: `1970`,
Asia: 80,
Africa: 17,
Europe: 11,
NorthAmerica: 3,
SouthAmerica: 9,
Oceania: 1
}),
new ContinentsBirthRateItem(
{
year: `1980`,
asia: 77,
africa: 21,
europe: 12,
northAmerica: 3,
southAmerica: 10,
oceania: 2
Year: `1980`,
Asia: 77,
Africa: 21,
Europe: 12,
NorthAmerica: 3,
SouthAmerica: 10,
Oceania: 2
}),
new ContinentsBirthRateItem(
{
year: `1990`,
asia: 87,
africa: 24,
europe: 9,
northAmerica: 3,
southAmerica: 10,
oceania: 1
Year: `1990`,
Asia: 87,
Africa: 24,
Europe: 9,
NorthAmerica: 3,
SouthAmerica: 10,
Oceania: 1
}),
new ContinentsBirthRateItem(
{
year: `2000`,
asia: 79,
africa: 28,
europe: 8,
northAmerica: 4,
southAmerica: 9,
oceania: 3
Year: `2000`,
Asia: 79,
Africa: 28,
Europe: 8,
NorthAmerica: 4,
SouthAmerica: 9,
Oceania: 3
}),
new ContinentsBirthRateItem(
{
year: `2010`,
asia: 78,
africa: 35,
europe: 10,
northAmerica: 4,
southAmerica: 8,
oceania: 2
Year: `2010`,
Asia: 78,
Africa: 35,
Europe: 10,
NorthAmerica: 4,
SouthAmerica: 8,
Oceania: 2
}),
new ContinentsBirthRateItem(
{
year: `2020`,
asia: 75,
africa: 43,
europe: 7,
northAmerica: 4,
southAmerica: 7,
oceania: 4
Year: `2020`,
Asia: 75,
Africa: 43,
Europe: 7,
NorthAmerica: 4,
SouthAmerica: 7,
Oceania: 4
}),
];
super(...newItems.slice(0));
Expand Down
12 changes: 6 additions & 6 deletions samples/charts/data-chart/stacked-100-area-chart/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export default class Sample extends React.Component<any, any> {
<IgrCategoryXAxis
name="xAxis"
dataSource={this.continentsBirthRate}
label="year">
label="Year">
</IgrCategoryXAxis>
<IgrNumericYAxis
name="yAxis"
Expand All @@ -88,27 +88,27 @@ export default class Sample extends React.Component<any, any> {
markerType="Circle">
<IgrStackedFragmentSeries
name="s1"
valueMemberPath="asia"
valueMemberPath="Asia"
title="Asia">
</IgrStackedFragmentSeries>
<IgrStackedFragmentSeries
name="s2"
valueMemberPath="africa"
valueMemberPath="Africa"
title="Africa">
</IgrStackedFragmentSeries>
<IgrStackedFragmentSeries
name="s3"
valueMemberPath="europe"
valueMemberPath="Europe"
title="Europe">
</IgrStackedFragmentSeries>
<IgrStackedFragmentSeries
name="s4"
valueMemberPath="northAmerica"
valueMemberPath="NorthAmerica"
title="North America">
</IgrStackedFragmentSeries>
<IgrStackedFragmentSeries
name="s5"
valueMemberPath="southAmerica"
valueMemberPath="SouthAmerica"
title="South America">
</IgrStackedFragmentSeries>
</IgrStacked100AreaSeries>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ export class ContinentsBirthRateItem {
Object.assign(this, init);
}

public year: string;
public asia: number;
public africa: number;
public europe: number;
public northAmerica: number;
public southAmerica: number;
public oceania: number;
public Year: string;
public Asia: number;
public Africa: number;
public Europe: number;
public NorthAmerica: number;
public SouthAmerica: number;
public Oceania: number;

}
export class ContinentsBirthRate extends Array<ContinentsBirthRateItem> {
Expand All @@ -20,83 +20,83 @@ export class ContinentsBirthRate extends Array<ContinentsBirthRateItem> {
const newItems = [
new ContinentsBirthRateItem(
{
year: `1950`,
asia: 62,
africa: 13,
europe: 10,
northAmerica: 4,
southAmerica: 8,
oceania: 1
Year: `1950`,
Asia: 62,
Africa: 13,
Europe: 10,
NorthAmerica: 4,
SouthAmerica: 8,
Oceania: 1
}),
new ContinentsBirthRateItem(
{
year: `1960`,
asia: 68,
africa: 12,
europe: 15,
northAmerica: 4,
southAmerica: 9,
oceania: 2
Year: `1960`,
Asia: 68,
Africa: 12,
Europe: 15,
NorthAmerica: 4,
SouthAmerica: 9,
Oceania: 2
}),
new ContinentsBirthRateItem(
{
year: `1970`,
asia: 80,
africa: 17,
europe: 11,
northAmerica: 3,
southAmerica: 9,
oceania: 1
Year: `1970`,
Asia: 80,
Africa: 17,
Europe: 11,
NorthAmerica: 3,
SouthAmerica: 9,
Oceania: 1
}),
new ContinentsBirthRateItem(
{
year: `1980`,
asia: 77,
africa: 21,
europe: 12,
northAmerica: 3,
southAmerica: 10,
oceania: 2
Year: `1980`,
Asia: 77,
Africa: 21,
Europe: 12,
NorthAmerica: 3,
SouthAmerica: 10,
Oceania: 2
}),
new ContinentsBirthRateItem(
{
year: `1990`,
asia: 87,
africa: 24,
europe: 9,
northAmerica: 3,
southAmerica: 10,
oceania: 1
Year: `1990`,
Asia: 87,
Africa: 24,
Europe: 9,
NorthAmerica: 3,
SouthAmerica: 10,
Oceania: 1
}),
new ContinentsBirthRateItem(
{
year: `2000`,
asia: 79,
africa: 28,
europe: 8,
northAmerica: 4,
southAmerica: 9,
oceania: 3
Year: `2000`,
Asia: 79,
Africa: 28,
Europe: 8,
NorthAmerica: 4,
SouthAmerica: 9,
Oceania: 3
}),
new ContinentsBirthRateItem(
{
year: `2010`,
asia: 78,
africa: 35,
europe: 10,
northAmerica: 4,
southAmerica: 8,
oceania: 2
Year: `2010`,
Asia: 78,
Africa: 35,
Europe: 10,
NorthAmerica: 4,
SouthAmerica: 8,
Oceania: 2
}),
new ContinentsBirthRateItem(
{
year: `2020`,
asia: 75,
africa: 43,
europe: 7,
northAmerica: 4,
southAmerica: 7,
oceania: 4
Year: `2020`,
Asia: 75,
Africa: 43,
Europe: 7,
NorthAmerica: 4,
SouthAmerica: 7,
Oceania: 4
}),
];
super(...newItems.slice(0));
Expand Down
Loading