Skip to content

Commit 352ebc9

Browse files
author
Mischa Spelt
committed
Added example for Line Chart Time Axis graph.
1 parent 3d4e80a commit 352ebc9

File tree

1 file changed

+15
-12
lines changed

1 file changed

+15
-12
lines changed

BlazorBootstrap.Demo.RCL/Components/Pages/Charts/LineCharts/LineChartDocumentation.razor

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,33 +6,33 @@
66

77
<h1>Blazor Line Chart</h1>
88
<div class="lead mb-3">
9-
A Blazor Bootstrap line chart component is a graphical representation of data that uses a series of connected points to show how the data changes over time.
10-
It is a type of x-y chart, where the x-axis represents the independent variable, such as time, and the y-axis represents the dependent variable, such as the value.
9+
A Blazor Bootstrap line chart component is a graphical representation of data that uses a series of connected points to show how the data changes over time.
10+
It is a type of x-y chart, where the x-axis represents the independent variable, such as time, and the y-axis represents the dependent variable, such as the value.
1111
</div>
1212

1313
<CarbonAds />
1414

1515
<SectionHeading Size="HeadingSize.H4" Text="Prerequisites" PageUrl="@pageUrl" HashTagName="prerequisites" />
1616
<div class="mb-3">
17-
Refer to the <a href="/getting-started/blazor-webassembly">getting started guide</a> for setting up charts.
17+
Refer to the <a href="/getting-started/blazor-webassembly">getting started guide</a> for setting up charts.
1818
</div>
1919

2020
<SectionHeading Size="HeadingSize.H4" Text="How it works" PageUrl="@pageUrl" HashTagName="how-it-works" />
2121
<div class="mb-3">
22-
In the following example, a <a href="/utils/color-utility#categorical-12-color">categorical 12-color</a> palette is used.
22+
In the following example, a <a href="/utils/color-utility#categorical-12-color">categorical 12-color</a> palette is used.
2323
</div>
2424
<Callout Heading="TIP" Color="CalloutColor.Success">
25-
For data visualization, you can use the predefined palettes <code>ColorUtility.CategoricalTwelveColors</code> for a 12-color palette and <code>ColorUtility.CategoricalSixColors</code> for a 6-color palette.
26-
These palettes offer a range of distinct and visually appealing colors that can be applied to represent different categories or data elements in your visualizations.
25+
For data visualization, you can use the predefined palettes <code>ColorUtility.CategoricalTwelveColors</code> for a 12-color palette and <code>ColorUtility.CategoricalSixColors</code> for a 6-color palette.
26+
These palettes offer a range of distinct and visually appealing colors that can be applied to represent different categories or data elements in your visualizations.
2727
</Callout>
2828
<Demo Type="typeof(LineChart_Demo_01_A_Examples)" Tabs="true" />
2929
<div class="my-3"></div>
3030
<Demo Type="typeof(LineChart_Demo_01_B_Examples)" Tabs="true" />
3131

3232
<SectionHeading Size="HeadingSize.H4" Text="Locale" PageUrl="@pageUrl" HashTagName="locale" />
3333
<div class="my-3">
34-
By default, the chart is using the default locale of the platform on which it is running.
35-
In the following example, you will see the chart in the <b>German</b> locale (<b>de_DE</b>).
34+
By default, the chart is using the default locale of the platform on which it is running.
35+
In the following example, you will see the chart in the <b>German</b> locale (<b>de_DE</b>).
3636
</div>
3737
<Demo Type="typeof(LineChart_Demo_02_Locale)" Tabs="true" />
3838

@@ -48,9 +48,12 @@
4848
<SectionHeading Size="HeadingSize.H4" Text="Fill between datasets" PageUrl="@pageUrl" HashTagName="dataset-fill" />
4949
<Demo Type="typeof(LineChart_Demo_06_Dataset_Fill)" Tabs="true" />
5050

51+
<SectionHeading Size="HeadingSize.H4" Text="Time Axis" PageUrl="@pageUrl" HashTagName="time-axis" />
52+
<Demo Type="typeof(LineChart_Demo_07_Time_Axis)" Tabs="true" />
53+
5154
@code {
52-
private readonly string pageUrl = "/charts/line-chart";
53-
private readonly string title = "Blazor Line Chart";
54-
private readonly string description = "A Blazor Bootstrap line chart component is a graphical representation of data that uses a series of connected points to show how the data changes over time. It is a type of x-y chart, where the x-axis represents the independent variable, such as time, and the y-axis represents the dependent variable, such as the value.";
55-
private readonly string imageUrl = "https://i.imgur.com/8b7jH0D.png";
55+
private readonly string pageUrl = "/charts/line-chart";
56+
private readonly string title = "Blazor Line Chart";
57+
private readonly string description = "A Blazor Bootstrap line chart component is a graphical representation of data that uses a series of connected points to show how the data changes over time. It is a type of x-y chart, where the x-axis represents the independent variable, such as time, and the y-axis represents the dependent variable, such as the value.";
58+
private readonly string imageUrl = "https://i.imgur.com/8b7jH0D.png";
5659
}

0 commit comments

Comments
 (0)