Skip to content

Commit 5e30600

Browse files
authored
Merge branch 'development' into ES-892736-FiniteDirection
2 parents cdfea9a + b678b22 commit 5e30600

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

74 files changed

+14122
-748
lines changed

blazor/chart/chart-types/area.md

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

blazor/chart/chart-types/bar.md

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

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

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

blazor/chart/chart-types/bubble.md

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

blazor/chart/chart-types/candle.md

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

blazor/chart/chart-types/column.md

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

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

Lines changed: 108 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ Error bars are graphical representations of the variability of data that are use
4949
}
5050
5151
```
52+
{% previewsample "https://blazorplayground.syncfusion.com/embed/hjrJXvLtoGKlZQco?appbar=false&editor=false&result=true&errorlist=false&theme=bootstrap5" %}
5253

5354
![Blazor Line Chart with Error Bar](../images/othertypes/blazor-error-bar-chart.png)
5455

@@ -92,6 +93,7 @@ To change the error bar rendering type, set [Type](https://help.syncfusion.com/c
9293
}
9394
9495
```
96+
{% previewsample "https://blazorplayground.syncfusion.com/embed/VXVptlLDSQfSIQbX?appbar=false&editor=false&result=true&errorlist=false&theme=bootstrap5" %}
9597

9698
## Customizing error bar type
9799

@@ -134,6 +136,7 @@ To customize the error bar type, specify the [Type](https://help.syncfusion.com/
134136
}
135137
136138
```
139+
{% previewsample "https://blazorplayground.syncfusion.com/embed/BNVpjbVteQTEHUBm?appbar=false&editor=false&result=true&errorlist=false&theme=bootstrap5" %}
137140

138141
![Blazor Line Chart with Custom Error Bar](../images/chart-types-images/blazor-line-chart-custom-error-bar.png)
139142

@@ -177,6 +180,7 @@ Error bar mode is used to define whether the error bar line should be drawn hori
177180
}
178181
179182
```
183+
{% previewsample "https://blazorplayground.syncfusion.com/embed/LtrJXlrZemozoWbI?appbar=false&editor=false&result=true&errorlist=false&theme=bootstrap5" %}
180184

181185
## Error bar direction
182186

@@ -218,6 +222,7 @@ To change the error bar direction to plus, minus, or both sides, use [Direction]
218222
}
219223
220224
```
225+
{% previewsample "https://blazorplayground.syncfusion.com/embed/VNVfjbBNSQIYbupQ?appbar=false&editor=false&result=true&errorlist=false&theme=bootstrap5" %}
221226

222227
## Customizing error bar cap
223228

@@ -260,10 +265,112 @@ To customize the error bar cap [Length](https://help.syncfusion.com/cr/blazor/Sy
260265
}
261266
262267
```
268+
{% previewsample "https://blazorplayground.syncfusion.com/embed/VZVJXbVDIGdTeIOM?appbar=false&editor=false&result=true&errorlist=false&theme=bootstrap5" %}
263269

264270
![Blazor Line Chart with Custom Error Bar Cap](../images/othertypes/blazor-line-chart-custom-error-bar-cap.png)
265271

266-
N> Refer to our [Blazor Charts](https://www.syncfusion.com/blazor-components/blazor-charts) feature tour page for its groundbreaking feature representations and also explore our [Blazor Chart Example](https://blazor.syncfusion.com/demos/chart/line?theme=bootstrap4) to know various chart types and how to represent time-dependent data, showing trends at equal intervals.
272+
## Events
273+
274+
### Series render
275+
276+
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.
277+
278+
```cshtml
279+
280+
@using Syncfusion.Blazor.Charts
281+
282+
<SfChart>
283+
<ChartEvents OnSeriesRender="SeriesRender"></ChartEvents>
284+
285+
<ChartPrimaryXAxis ValueType="Syncfusion.Blazor.Charts.ValueType.Category">
286+
</ChartPrimaryXAxis>
287+
288+
<ChartSeriesCollection>
289+
<ChartSeries DataSource="@SalesReports" XName="X" YName="Y" Type="Syncfusion.Blazor.Charts.ChartSeriesType.Line">
290+
<ChartErrorBarSettings Visible="true">
291+
</ChartErrorBarSettings>
292+
</ChartSeries>
293+
</ChartSeriesCollection>
294+
</SfChart>
295+
296+
@code {
297+
public class ChartData
298+
{
299+
public double X { get; set; }
300+
public double Y { get; set; }
301+
}
302+
303+
public void SeriesRender(SeriesRenderEventArgs args)
304+
{
305+
args.Fill = "#FF4081";
306+
}
307+
308+
public List<ChartData> SalesReports = new List<ChartData>
309+
{
310+
new ChartData{ X= 2005, Y= 28 },
311+
new ChartData{ X= 2006, Y= 25 },
312+
new ChartData{ X= 2007, Y= 26 },
313+
new ChartData{ X= 2008, Y= 27 },
314+
new ChartData{ X= 2009, Y= 32 },
315+
new ChartData{ X= 2010, Y= 35 },
316+
new ChartData{ X= 2011, Y= 30 }
317+
};
318+
}
319+
320+
```
321+
{% previewsample "https://blazorplayground.syncfusion.com/embed/htBJjPrtyQcdqASQ?appbar=false&editor=false&result=true&errorlist=false&theme=bootstrap5" %}
322+
323+
### Point render
324+
325+
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.
326+
327+
```cshtml
328+
329+
@using Syncfusion.Blazor.Charts
330+
331+
<SfChart>
332+
<ChartEvents OnPointRender="PointRender"></ChartEvents>
333+
334+
<ChartPrimaryXAxis ValueType="Syncfusion.Blazor.Charts.ValueType.Category">
335+
</ChartPrimaryXAxis>
336+
337+
<ChartSeriesCollection>
338+
<ChartSeries DataSource="@SalesReports" XName="X" YName="Y" Type="Syncfusion.Blazor.Charts.ChartSeriesType.Line">
339+
<ChartErrorBarSettings Visible="true">
340+
</ChartErrorBarSettings>
341+
<ChartMarker Visible="true" Height="10" Width="10"></ChartMarker>
342+
</ChartSeries>
343+
</ChartSeriesCollection>
344+
</SfChart>
345+
346+
@code {
347+
public class ChartData
348+
{
349+
public double X { get; set; }
350+
public double Y { get; set; }
351+
}
352+
353+
public void PointRender(PointRenderEventArgs args)
354+
{
355+
args.Fill = args.Point.X.ToString() == "2008" ? "#E91E63" : "#3F51B5";
356+
}
357+
358+
public List<ChartData> SalesReports = new List<ChartData>
359+
{
360+
new ChartData{ X= 2005, Y= 28 },
361+
new ChartData{ X= 2006, Y= 25 },
362+
new ChartData{ X= 2007, Y= 26 },
363+
new ChartData{ X= 2008, Y= 27 },
364+
new ChartData{ X= 2009, Y= 32 },
365+
new ChartData{ X= 2010, Y= 35 },
366+
new ChartData{ X= 2011, Y= 30 }
367+
};
368+
}
369+
370+
```
371+
{% previewsample "https://blazorplayground.syncfusion.com/embed/rjVzXbhXScaLsKPU?appbar=false&editor=false&result=true&errorlist=false&theme=bootstrap5" %}
372+
373+
N> Refer to our [Blazor Charts](https://www.syncfusion.com/blazor-components/blazor-charts) feature tour page for its groundbreaking feature representations and also explore our [Blazor Chart Example](https://blazor.syncfusion.com/demos/chart/line?theme=bootstrap5) to know various chart types and how to represent time-dependent data, showing trends at equal intervals.
267374

268375
## See also
269376

0 commit comments

Comments
 (0)