Skip to content

Commit 2907452

Browse files
authored
Merge pull request #6729 from syncfusion-content/983838-ChartTypes4
983838: Updated the UG content and example changes in the chart control.
2 parents dc2ab8a + 54d2411 commit 2907452

File tree

8 files changed

+451
-474
lines changed

8 files changed

+451
-474
lines changed

blazor/chart/chart-types/box-whisker.md

Lines changed: 34 additions & 43 deletions
Large diffs are not rendered by default.

blazor/chart/chart-types/candle.md

Lines changed: 64 additions & 68 deletions
Large diffs are not rendered by default.

blazor/chart/chart-types/error-bar.md

Lines changed: 93 additions & 101 deletions
Large diffs are not rendered by default.

blazor/chart/chart-types/high-low-open-close.md

Lines changed: 54 additions & 54 deletions
Large diffs are not rendered by default.

blazor/chart/chart-types/histogram.md

Lines changed: 55 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,26 @@
11
---
22
layout: post
3-
title: Histogram in Blazor Charts Component | Syncfusion
4-
description: Checkout and learn here all about the Histogram Chart in Syncfusion Blazor Charts component and more.
3+
title: Histogram Chart in Blazor Charts Component | Syncfusion
4+
description: Check out and learn how to configure and customize the Histogram Chart in Syncfusion Blazor Charts component.
55
platform: Blazor
66
control: Chart
77
documentation: ug
88
---
99

10-
# Histogram in Blazor Charts Component
10+
# Histogram Chart in Blazor Charts Component
1111

12-
## Histogram
12+
## Histogram Chart
1313

14-
[Histogram Chart](https://www.syncfusion.com/blazor-components/blazor-charts/chart-types/histogram-chart) can provide a visual display of large amounts of data that are difficult to understand in a tabular or spreadsheet form and it can be rendered by specifying the series [Type](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Charts.ChartSeries.html#Syncfusion_Blazor_Charts_ChartSeries_Type) to [Histogram](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Charts.ChartSeriesType.html#Syncfusion_Blazor_Charts_ChartSeriesType_Histogram).
14+
The [Histogram Chart](https://www.syncfusion.com/blazor-components/blazor-charts/chart-types/histogram-chart) provides a visual representation of large datasets that may be difficult to interpret in tabular or spreadsheet form. Render a histogram by setting the series [Type](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Charts.ChartSeries.html#Syncfusion_Blazor_Charts_ChartSeries_Type) to [Histogram](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Charts.ChartSeriesType.html#Syncfusion_Blazor_Charts_ChartSeriesType_Histogram).
1515

1616
```cshtml
1717
1818
@using Syncfusion.Blazor.Charts
1919
2020
<SfChart Title="Score of Final Examination">
21-
<ChartArea><ChartAreaBorder Width="0"></ChartAreaBorder></ChartArea>
21+
<ChartArea>
22+
<ChartAreaBorder Width="0" />
23+
</ChartArea>
2224
2325
<ChartPrimaryXAxis Minimum="0" Maximum="100">
2426
<ChartAxisMajorGridLines Width="0"></ChartAxisMajorGridLines>
@@ -41,48 +43,49 @@ documentation: ug
4143
<ChartTooltipSettings Enable="true"></ChartTooltipSettings>
4244
</SfChart>
4345
44-
@code{
45-
46+
@code {
4647
public class Data
4748
{
4849
public double Y { get; set;}
4950
}
5051
5152
public List<Data> ExamScores = new List<Data>
5253
{
53-
new Data { Y=5.250},
54-
new Data { Y=7.750},
55-
new Data { Y=8.275},
56-
new Data { Y=9.750},
57-
new Data { Y=36.250},
58-
new Data { Y=46.250},
59-
new Data { Y=56.250},
60-
new Data { Y=66.500},
61-
new Data { Y=76.625},
62-
new Data { Y=80.000},
63-
new Data { Y=97.750}
54+
new Data { Y = 5.250 },
55+
new Data { Y = 7.750 },
56+
new Data { Y = 8.275 },
57+
new Data { Y = 9.750 },
58+
new Data { Y = 36.250 },
59+
new Data { Y = 46.250 },
60+
new Data { Y = 56.250 },
61+
new Data { Y = 66.500 },
62+
new Data { Y = 76.625 },
63+
new Data { Y = 80.000 },
64+
new Data { Y = 97.750 }
6465
};
6566
}
6667
6768
```
68-
{% previewsample "https://blazorplayground.syncfusion.com/embed/VjVpXPLjednCMkiw?appbar=false&editor=false&result=true&errorlist=false&theme=bootstrap5" %}
69+
{% previewsample "https://blazorplayground.syncfusion.com/embed/VjVpXPLjednCMkiw?appbar=false&editor=false&result=true&errorlist=false&theme=bootstrap5" %}
6970

7071
![Blazor Histogram Chart](../images/othertypes/blazor-histogram-chart.png)
7172

7273
## Events
7374

7475
### Series render
7576

76-
The [`OnSeriesRender`](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Charts.ChartEvents.html#Syncfusion_Blazor_Charts_ChartEvents_OnSeriesRender) event allows you to customize series properties, such as [Data](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Charts.SeriesRenderEventArgs.html#Syncfusion_Blazor_Charts_SeriesRenderEventArgs_Data), [Fill](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Charts.SeriesRenderEventArgs.html#Syncfusion_Blazor_Charts_SeriesRenderEventArgs_Fill), and [Series](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Charts.SeriesRenderEventArgs.html#Syncfusion_Blazor_Charts_SeriesRenderEventArgs_Series), before they are rendered on the chart.
77+
The [`OnSeriesRender`](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Charts.ChartEvents.html#Syncfusion_Blazor_Charts_ChartEvents_OnSeriesRender) event enables customization of series properties, such as [Data](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Charts.SeriesRenderEventArgs.html#Syncfusion_Blazor_Charts_SeriesRenderEventArgs_Data), [Fill](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Charts.SeriesRenderEventArgs.html#Syncfusion_Blazor_Charts_SeriesRenderEventArgs_Fill), and [Series](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Charts.SeriesRenderEventArgs.html#Syncfusion_Blazor_Charts_SeriesRenderEventArgs_Series), before rendering.
7778

7879
```cshtml
7980
8081
@using Syncfusion.Blazor.Charts
8182
8283
<SfChart Title="Score of Final Examination">
83-
<ChartEvents OnSeriesRender="SeriesRender"></ChartEvents>
84+
<ChartEvents OnSeriesRender="SeriesRender" />
8485
85-
<ChartArea><ChartAreaBorder Width="0"></ChartAreaBorder></ChartArea>
86+
<ChartArea>
87+
<ChartAreaBorder Width="0" />
88+
</ChartArea>
8689
8790
<ChartPrimaryXAxis Minimum="0" Maximum="100">
8891
<ChartAxisMajorGridLines Width="0"></ChartAxisMajorGridLines>
@@ -106,7 +109,6 @@ The [`OnSeriesRender`](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.C
106109
</SfChart>
107110
108111
@code {
109-
110112
public class Data
111113
{
112114
public double Y { get; set; }
@@ -119,17 +121,17 @@ The [`OnSeriesRender`](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.C
119121
120122
public List<Data> ExamScores = new List<Data>
121123
{
122-
new Data { Y=5.250},
123-
new Data { Y=7.750},
124-
new Data { Y=8.275},
125-
new Data { Y=9.750},
126-
new Data { Y=36.250},
127-
new Data { Y=46.250},
128-
new Data { Y=56.250},
129-
new Data { Y=66.500},
130-
new Data { Y=76.625},
131-
new Data { Y=80.000},
132-
new Data { Y=97.750}
124+
new Data { Y = 5.250 },
125+
new Data { Y = 7.750 },
126+
new Data { Y = 8.275 },
127+
new Data { Y = 9.750 },
128+
new Data { Y = 36.250 },
129+
new Data { Y = 46.250 },
130+
new Data { Y = 56.250 },
131+
new Data { Y = 66.500 },
132+
new Data { Y = 76.625 },
133+
new Data { Y = 80.000 },
134+
new Data { Y = 97.750 }
133135
};
134136
}
135137
@@ -138,16 +140,18 @@ The [`OnSeriesRender`](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.C
138140

139141
### Point render
140142

141-
The [`OnPointRender`](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Charts.ChartEvents.html#Syncfusion_Blazor_Charts_ChartEvents_OnPointRender) event allows you to customize each data point before it is rendered on the chart.
143+
The [`OnPointRender`](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Charts.ChartEvents.html#Syncfusion_Blazor_Charts_ChartEvents_OnPointRender) event allows customization of each data point before rendering.
142144

143145
```cshtml
144146
145147
@using Syncfusion.Blazor.Charts
146148
147149
<SfChart Title="Score of Final Examination">
148-
<ChartEvents OnPointRender="PointRender"></ChartEvents>
150+
<ChartEvents OnPointRender="PointRender" />
149151
150-
<ChartArea><ChartAreaBorder Width="0"></ChartAreaBorder></ChartArea>
152+
<ChartArea>
153+
<ChartAreaBorder Width="0" />
154+
</ChartArea>
151155
152156
<ChartPrimaryXAxis Minimum="0" Maximum="100">
153157
<ChartAxisMajorGridLines Width="0"></ChartAxisMajorGridLines>
@@ -171,7 +175,6 @@ The [`OnPointRender`](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Ch
171175
</SfChart>
172176
173177
@code {
174-
175178
public class Data
176179
{
177180
public double Y { get; set; }
@@ -185,17 +188,17 @@ The [`OnPointRender`](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Ch
185188
186189
public List<Data> ExamScores = new List<Data>
187190
{
188-
new Data { Y=5.250},
189-
new Data { Y=7.750},
190-
new Data { Y=8.275},
191-
new Data { Y=9.750},
192-
new Data { Y=36.250},
193-
new Data { Y=46.250},
194-
new Data { Y=56.250},
195-
new Data { Y=66.500},
196-
new Data { Y=76.625},
197-
new Data { Y=80.000},
198-
new Data { Y=97.750}
191+
new Data { Y = 5.250 },
192+
new Data { Y = 7.750 },
193+
new Data { Y = 8.275 },
194+
new Data { Y = 9.750 },
195+
new Data { Y = 36.250 },
196+
new Data { Y = 46.250 },
197+
new Data { Y = 56.250 },
198+
new Data { Y = 66.500 },
199+
new Data { Y = 76.625 },
200+
new Data { Y = 80.000 },
201+
new Data { Y = 97.750 }
199202
};
200203
}
201204
@@ -206,5 +209,6 @@ N> Refer to our [Blazor Charts](https://www.syncfusion.com/blazor-components/bla
206209

207210
## See also
208211

209-
* [Data Label](../data-labels)
212+
* [Data label](../data-labels)
210213
* [Tooltip](../tool-tip)
214+

0 commit comments

Comments
 (0)