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.2 (#603)

Co-authored-by: tfsbuild <[email protected]>
  • Loading branch information
azure-pipelines[bot] and tfsbuild authored Jan 17, 2024
1 parent ee0da03 commit f73f629
Show file tree
Hide file tree
Showing 6 changed files with 153 additions and 28 deletions.
2 changes: 2 additions & 0 deletions samples/charts/category-chart/axis-range/App.razor
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
ValueType="PropertyEditorValueType.EnumValue"
DropDownNames="@(new string[] { "0", "10", "20", "30", "40", "50", "60", "70", "80", "90", "100" })"
DropDownValues="@(new string[] { "0", "10", "20", "30", "40", "50", "60", "70", "80", "90", "100" })"
PrimitiveValue="0"
Changed="EditorChangeUpdateYAxisMinimumValue">
</IgbPropertyEditorPropertyDescription>

Expand All @@ -33,6 +34,7 @@
ValueType="PropertyEditorValueType.EnumValue"
DropDownNames="@(new string[] { "100", "110", "120", "130", "140", "150", "160", "170", "180", "190", "200" })"
DropDownValues="@(new string[] { "100", "110", "120", "130", "140", "150", "160", "170", "180", "190", "200" })"
PrimitiveValue="150"
Changed="EditorChangeUpdateYAxisMaximumValue">
</IgbPropertyEditorPropertyDescription>

Expand Down
58 changes: 49 additions & 9 deletions samples/charts/category-chart/format-specifiers/App.razor
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,10 @@
</div>
<div class="legend">
<IgbDataLegend

ValueFormatMode="DataLegendValueMode.Currency"
ValueFormatString="${0} Billion"
Name="Legend"
@ref="legend">
@ref="legend"
ValueFormatString="{0} Billion"
ValueFormatSpecifiers="NumberFormatSpecifier1">
</IgbDataLegend>

</div>
Expand All @@ -22,10 +21,11 @@
ChartType="CategoryChartType.Column"
IsHorizontalZoomEnabled="false"
IsVerticalZoomEnabled="false"
DataToolTipValueFormatMode="DataLegendValueMode.Currency"
DataToolTipValueFormatString="${0} Billion"
FinalValueAnnotationsPrecision="2"
DataToolTipValueFormatString="{0} Billion"
DataToolTipValueFormatSpecifiers="NumberFormatSpecifier3"
YAxisLabelFormat="{0}B"
YAxisLabelFormatSpecifiers="NumberFormatSpecifier1">
YAxisLabelFormatSpecifiers="NumberFormatSpecifier5">
</IgbCategoryChart>

</div>
Expand All @@ -48,7 +48,6 @@
}

private IgbDataLegend legend;
private IgbCategoryChart chart;
private IgbNumberFormatSpecifier[] _numberFormatSpecifier1 = null;
public IgbNumberFormatSpecifier[] NumberFormatSpecifier1
{
Expand All @@ -61,13 +60,54 @@
numberFormatSpecifier2.Style = "currency";
numberFormatSpecifier2.Currency = "USD";
numberFormatSpecifier2.CurrencyDisplay = "symbol";
numberFormatSpecifier2.MinimumFractionDigits = 0;
numberFormatSpecifier2.MaximumFractionDigits = 2;
numberFormatSpecifier2.MinimumFractionDigits = 2;
numberFormatSpecifier1[0] = numberFormatSpecifier2;
this._numberFormatSpecifier1 = numberFormatSpecifier1;
}
return this._numberFormatSpecifier1;
}
}
private IgbCategoryChart chart;
private IgbNumberFormatSpecifier[] _numberFormatSpecifier3 = null;
public IgbNumberFormatSpecifier[] NumberFormatSpecifier3
{
get
{
if (this._numberFormatSpecifier3 == null)
{
var numberFormatSpecifier3 = new IgbNumberFormatSpecifier[1];
var numberFormatSpecifier4 = new IgbNumberFormatSpecifier();
numberFormatSpecifier4.Style = "currency";
numberFormatSpecifier4.Currency = "USD";
numberFormatSpecifier4.CurrencyDisplay = "symbol";
numberFormatSpecifier4.MaximumFractionDigits = 2;
numberFormatSpecifier4.MinimumFractionDigits = 2;
numberFormatSpecifier3[0] = numberFormatSpecifier4;
this._numberFormatSpecifier3 = numberFormatSpecifier3;
}
return this._numberFormatSpecifier3;
}
}
private IgbNumberFormatSpecifier[] _numberFormatSpecifier5 = null;
public IgbNumberFormatSpecifier[] NumberFormatSpecifier5
{
get
{
if (this._numberFormatSpecifier5 == null)
{
var numberFormatSpecifier5 = new IgbNumberFormatSpecifier[1];
var numberFormatSpecifier6 = new IgbNumberFormatSpecifier();
numberFormatSpecifier6.Style = "currency";
numberFormatSpecifier6.Currency = "USD";
numberFormatSpecifier6.CurrencyDisplay = "symbol";
numberFormatSpecifier6.MinimumFractionDigits = 0;
numberFormatSpecifier5[0] = numberFormatSpecifier6;
this._numberFormatSpecifier5 = numberFormatSpecifier5;
}
return this._numberFormatSpecifier5;
}
}

private HighestGrossingMovies _highestGrossingMovies = null;
public HighestGrossingMovies HighestGrossingMovies
Expand Down
3 changes: 2 additions & 1 deletion samples/charts/category-chart/format-specifiers/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ public static async Task Main(string[] args)
typeof(IgbInputModule),
typeof(IgbPropertyEditorPanelModule),
typeof(IgbDataLegendModule),
typeof(IgbCategoryChartModule)
typeof(IgbCategoryChartModule),
typeof(IgbNumberFormatSpecifierModule)
);
await builder.Build().RunAsync();
}
Expand Down
58 changes: 49 additions & 9 deletions samples/charts/data-chart/format-specifiers/App.razor
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
<IgbDataLegend
Name="Legend"
@ref="legend"
ValueFormatMode="DataLegendValueMode.Currency"
ValueFormatString="${0} Billion">
ValueFormatString="{0} Billion"
ValueFormatSpecifiers="NumberFormatSpecifier1">
</IgbDataLegend>

</div>
Expand All @@ -35,7 +35,7 @@
Title="Billions of U.S. Dollars"
LabelFormat="{0}B"
AbbreviateLargeNumbers="false"
LabelFormatSpecifiers="NumberFormatSpecifier1">
LabelFormatSpecifiers="NumberFormatSpecifier3">
</IgbNumericXAxis>

<IgbBarSeries
Expand Down Expand Up @@ -63,8 +63,8 @@
<IgbDataToolTipLayer
Name="Tooltips"
@ref="tooltips"
ValueFormatMode="DataLegendValueMode.Currency"
ValueFormatString="${0} Billion">
ValueFormatString="{0} Billion"
ValueFormatSpecifiers="NumberFormatSpecifier5">
</IgbDataToolTipLayer>

</IgbDataChart>
Expand Down Expand Up @@ -94,9 +94,6 @@
}

private IgbDataLegend legend;
private IgbDataChart chart;
private IgbCategoryYAxis yAxis;
private IgbNumericXAxis xAxis;
private IgbNumberFormatSpecifier[] _numberFormatSpecifier1 = null;
public IgbNumberFormatSpecifier[] NumberFormatSpecifier1
{
Expand All @@ -109,16 +106,59 @@
numberFormatSpecifier2.Style = "currency";
numberFormatSpecifier2.Currency = "USD";
numberFormatSpecifier2.CurrencyDisplay = "symbol";
numberFormatSpecifier2.MinimumFractionDigits = 0;
numberFormatSpecifier2.MinimumFractionDigits = 2;
numberFormatSpecifier2.MaximumFractionDigits = 2;
numberFormatSpecifier1[0] = numberFormatSpecifier2;
this._numberFormatSpecifier1 = numberFormatSpecifier1;
}
return this._numberFormatSpecifier1;
}
}
private IgbDataChart chart;
private IgbCategoryYAxis yAxis;
private IgbNumericXAxis xAxis;
private IgbNumberFormatSpecifier[] _numberFormatSpecifier3 = null;
public IgbNumberFormatSpecifier[] NumberFormatSpecifier3
{
get
{
if (this._numberFormatSpecifier3 == null)
{
var numberFormatSpecifier3 = new IgbNumberFormatSpecifier[1];
var numberFormatSpecifier4 = new IgbNumberFormatSpecifier();
numberFormatSpecifier4.Style = "currency";
numberFormatSpecifier4.Currency = "USD";
numberFormatSpecifier4.CurrencyDisplay = "symbol";
numberFormatSpecifier4.MinimumFractionDigits = 0;
numberFormatSpecifier3[0] = numberFormatSpecifier4;
this._numberFormatSpecifier3 = numberFormatSpecifier3;
}
return this._numberFormatSpecifier3;
}
}
private IgbBarSeries barSeries1;
private IgbBarSeries barSeries2;
private IgbDataToolTipLayer tooltips;
private IgbNumberFormatSpecifier[] _numberFormatSpecifier5 = null;
public IgbNumberFormatSpecifier[] NumberFormatSpecifier5
{
get
{
if (this._numberFormatSpecifier5 == null)
{
var numberFormatSpecifier5 = new IgbNumberFormatSpecifier[1];
var numberFormatSpecifier6 = new IgbNumberFormatSpecifier();
numberFormatSpecifier6.Style = "currency";
numberFormatSpecifier6.Currency = "USD";
numberFormatSpecifier6.CurrencyDisplay = "symbol";
numberFormatSpecifier6.MinimumFractionDigits = 2;
numberFormatSpecifier6.MaximumFractionDigits = 2;
numberFormatSpecifier5[0] = numberFormatSpecifier6;
this._numberFormatSpecifier5 = numberFormatSpecifier5;
}
return this._numberFormatSpecifier5;
}
}

private HighestGrossingMovies _highestGrossingMovies = null;
public HighestGrossingMovies HighestGrossingMovies
Expand Down
56 changes: 48 additions & 8 deletions samples/charts/financial-chart/format-specifiers/App.razor
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
IncludedColumns="@(new string[] { "Close", "Change", "Value" })"
ExcludedColumns="@(new string[] { "High", "Low", "Open", "Volume" })"
LabelDisplayMode="DataLegendLabelMode.Hidden"
ValueFormatMode="DataLegendValueMode.Currency"
ValueFormatCulture="en-GB">
ValueFormatString="{0}"
ValueFormatSpecifiers="NumberFormatSpecifier1">
</IgbDataLegend>

</div>
Expand All @@ -19,14 +19,14 @@
@ref="chart"
ChartType="FinancialChartType.Candle"
DataSource="MultipleStocks"
DataToolTipValueFormatMode="DataLegendValueMode.Currency"
DataToolTipValueFormatCulture="en-GB"
DataToolTipLabelDisplayMode="DataLegendLabelMode.Hidden"
DataToolTipValueFormatString="{0}"
DataToolTipValueFormatSpecifiers="NumberFormatSpecifier3"
DataToolTipIncludedColumns="@(new string[] { "Close", "Change", "Value" })"
DataToolTipHeaderFormatTime="DataLegendHeaderTimeMode.None"
ZoomSliderType="FinancialChartZoomSliderType.None"
YAxisAbbreviateLargeNumbers="false"
YAxisLabelFormat="{0}"
YAxisLabelFormatSpecifiers="NumberFormatSpecifier1"
YAxisLabelFormatSpecifiers="NumberFormatSpecifier5"
XAxisLabelFormat="{0}"
XAxisLabelFormatSpecifiers="DateTimeFormatSpecifier1">
</IgbFinancialChart>
Expand All @@ -51,7 +51,6 @@
}

private IgbDataLegend legend;
private IgbFinancialChart chart;
private IgbNumberFormatSpecifier[] _numberFormatSpecifier1 = null;
public IgbNumberFormatSpecifier[] NumberFormatSpecifier1
{
Expand All @@ -64,13 +63,54 @@
numberFormatSpecifier2.Currency = "EUR";
numberFormatSpecifier2.Style = "currency";
numberFormatSpecifier2.Locale = "en-GB";
numberFormatSpecifier2.MinimumFractionDigits = 0;
numberFormatSpecifier2.MinimumFractionDigits = 2;
numberFormatSpecifier2.MaximumFractionDigits = 2;
numberFormatSpecifier1[0] = numberFormatSpecifier2;
this._numberFormatSpecifier1 = numberFormatSpecifier1;
}
return this._numberFormatSpecifier1;
}
}
private IgbFinancialChart chart;
private IgbNumberFormatSpecifier[] _numberFormatSpecifier3 = null;
public IgbNumberFormatSpecifier[] NumberFormatSpecifier3
{
get
{
if (this._numberFormatSpecifier3 == null)
{
var numberFormatSpecifier3 = new IgbNumberFormatSpecifier[1];
var numberFormatSpecifier4 = new IgbNumberFormatSpecifier();
numberFormatSpecifier4.Currency = "EUR";
numberFormatSpecifier4.Style = "currency";
numberFormatSpecifier4.Locale = "en-GB";
numberFormatSpecifier4.MinimumFractionDigits = 2;
numberFormatSpecifier4.MaximumFractionDigits = 2;
numberFormatSpecifier3[0] = numberFormatSpecifier4;
this._numberFormatSpecifier3 = numberFormatSpecifier3;
}
return this._numberFormatSpecifier3;
}
}
private IgbNumberFormatSpecifier[] _numberFormatSpecifier5 = null;
public IgbNumberFormatSpecifier[] NumberFormatSpecifier5
{
get
{
if (this._numberFormatSpecifier5 == null)
{
var numberFormatSpecifier5 = new IgbNumberFormatSpecifier[1];
var numberFormatSpecifier6 = new IgbNumberFormatSpecifier();
numberFormatSpecifier6.Currency = "EUR";
numberFormatSpecifier6.Style = "currency";
numberFormatSpecifier6.Locale = "en-GB";
numberFormatSpecifier6.MinimumFractionDigits = 0;
numberFormatSpecifier5[0] = numberFormatSpecifier6;
this._numberFormatSpecifier5 = numberFormatSpecifier5;
}
return this._numberFormatSpecifier5;
}
}
private IgbDateTimeFormatSpecifier[] _dateTimeFormatSpecifier1 = null;
public IgbDateTimeFormatSpecifier[] DateTimeFormatSpecifier1
{
Expand Down
4 changes: 3 additions & 1 deletion samples/charts/financial-chart/format-specifiers/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ public static async Task Main(string[] args)
builder.Services.AddIgniteUIBlazor(
typeof(IgbFinancialChartModule),
typeof(IgbDataChartInteractivityModule),
typeof(IgbDataLegendModule)
typeof(IgbDataLegendModule),
typeof(IgbNumberFormatSpecifierModule),
typeof(IgbDateTimeFormatSpecifierModule)
);
await builder.Build().RunAsync();
}
Expand Down

0 comments on commit f73f629

Please sign in to comment.