Skip to content

Commit 437101c

Browse files
committed
Bar chart demos updated.
1 parent e509def commit 437101c

3 files changed

Lines changed: 17 additions & 9 deletions

File tree

BlazorExpress.ChartJS.Demo.RCL/Layout/MainLayoutBaseFooter.razor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
Dimension="ImageDimension.Is32x32"
1111
alt="BlazorExpress Logo" />
1212
</div>
13-
<div class="is-size-4">BlazorExpress.Bulma</div>
13+
<div class="is-size-4">@StringConstants.NugetPackageName</div>
1414
</div>
1515
<div class="is-size-6 mb-2">
1616
Designed and built with <i class="bi bi-heart-fill has-text-danger"></i> by the <b>BlazorExpress</b> team and our contributors.

BlazorExpress.ChartJS.Demo.RCL/Pages/Demos/BarChart/BarChartDocumentation.razor

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,19 +27,27 @@
2727
<Demo Type="typeof(BarChart_Demo_01_Examples)" Tabs="true" />
2828
</Section>
2929

30+
<Section Class="p-0" Size="HeadingSize.H4" Name="Horizontal bar chart" PageUrl="@pageUrl" Link="horizontal-bar-chart">
3031
<Demo Type="typeof(BarChart_Demo_02_Horizontal_BarChart)" />
32+
</Section>
3133

34+
<Section Class="p-0" Size="HeadingSize.H4" Name="Stacked bar chart" PageUrl="@pageUrl" Link="stacked-bar-chart">
3235
<Demo Type="typeof(BarChart_Demo_03_Stacked_BarChart)" />
36+
</Section>
3337

38+
<Section Class="p-0" Size="HeadingSize.H4" Name="Stacked bar chart with data labels" PageUrl="@pageUrl" Link="stacked-bar-chart-with-data-labels">
3439
<Demo Type="typeof(BarChart_Demo_04_Stacked_BarChart_with_Datalabels)" />
40+
</Section>
3541

42+
<Section Class="p-0" Size="HeadingSize.H4" Name="Locale" PageUrl="@pageUrl" Link="locale">
3643
<Demo Type="typeof(BarChart_Demo_05_Locale)" />
44+
</Section>
3745

3846
@code {
3947
private const string pageUrl = RouteConstants.Demos_BarChart;
4048
private const string pageTitle = "Bar Chart";
41-
private const string pageDescription = "The <code>Bar Chart</code> component is a simple spacer tool. It allows sibling HTML elements to have a consistent margin between them.";
49+
private const string pageDescription = "The <code>Bar Chart</code> component displays data values as vertical bars, making it easy to compare multiple data sets or visualize trends over time.";
4250
private const string metaTitle = "Blazor Bar Chart";
43-
private const string metaDescription = "A Blazor bar chart component is used to represent data values as vertical bars. It is sometimes used to show trend data and to compare multiple data sets side by side.";
51+
private const string metaDescription = "The Bar Chart component displays data values as vertical bars, making it easy to compare multiple data sets or visualize trends over time.";
4452
private const string imageUrl = "https://i.imgur.com/IX3bajc.png"; // TODO: update
45-
}
53+
}

BlazorExpress.ChartJS.Demo.RCL/Pages/Demos/BarChart/BarChart_Demo_01_Examples.razor

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<BarChart @ref="barChart" Width="600" />
22

33
<div class="mt-5">
4-
<button class="btn btn-primary btn-sm mb-1" @onclick="async () => await RandomizeAsync()"> Randomize </button>
5-
<button class="btn btn-primary btn-sm mb-1" @onclick="async () => await AddDatasetAsync()"> Add Dataset </button>
6-
<button class="btn btn-primary btn-sm mb-1" @onclick="async () => await AddDataAsync()">Add Data</button>
7-
<button class="btn btn-primary btn-sm mb-1" @onclick="async () => await ShowHorizontalBarChartAsync()">Horizontal Bar Chart</button>
8-
<button class="btn btn-primary btn-sm" @onclick="async () => await ShowVerticalBarChartAsync()">Vertical Bar Chart</button>
4+
<Button Color="ButtonColor.Primary" @onclick="async () => await RandomizeAsync()"> Randomize </Button>
5+
<Button Color="ButtonColor.Link" @onclick="async () => await AddDatasetAsync()"> Add Dataset </Button>
6+
<Button Color="ButtonColor.Info" @onclick="async () => await AddDataAsync()">Add Data</Button>
7+
<Button Color="ButtonColor.Success" @onclick="async () => await ShowHorizontalBarChartAsync()">Horizontal Bar Chart</Button>
8+
<Button Color="ButtonColor.Warning" @onclick="async () => await ShowVerticalBarChartAsync()">Vertical Bar Chart</Button>
99
</div>
1010

1111
@code {

0 commit comments

Comments
 (0)