Skip to content

974068: Updated preview samples in blazor circular gauge. #6379

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: development
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 17 additions & 6 deletions blazor/circular-gauge/appearance.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ You can add a title to the Circular Gauge using the [Title](https://help.syncfus
</CircularGaugeAxes>
</SfCircularGauge>
```
{% previewsample "https://blazorplayground.syncfusion.com/embed/rDrqMhLwAfAAeKAL?appbar=false&editor=false&result=true&errorlist=false&theme=bootstrap5" %}
{% previewsample "https://blazorplayground.syncfusion.com/embed/BNryNFDSgehrgcDn?appbar=false&editor=false&result=true&errorlist=false&theme=bootstrap5" %}

![Blazor Circular Gauge with Title](./images/blazor-circulargauge-title.png)

Expand All @@ -44,11 +44,15 @@ You can set the mid point of the Circular Gauge in pixel as shown below.

<SfCircularGauge CenterX="20px" CenterY="20px">
<CircularGaugeAxes>
<CircularGaugeAxis StartAngle="90" EndAngle="180"></CircularGaugeAxis>
<CircularGaugeAxis StartAngle="90" EndAngle="180">
<CircularGaugePointers>
<CircularGaugePointer></CircularGaugePointer>
</CircularGaugePointers>
</CircularGaugeAxis>
</CircularGaugeAxes>
</SfCircularGauge>
```
{% previewsample "https://blazorplayground.syncfusion.com/embed/VDBKWVrmgfzCKvPj?appbar=false&editor=false&result=true&errorlist=false&theme=bootstrap5" %}
{% previewsample "https://blazorplayground.syncfusion.com/embed/BDLoXlXoUyTkNEDU?appbar=false&editor=false&result=true&errorlist=false&theme=bootstrap5" %}

![Changing Blazor Circular Gauge Position based on Pixel Value](./images/blazor-circulargauge-custom-position.png)

Expand All @@ -61,11 +65,15 @@ By setting the value in percentage, Circular Gauge gets its mid point with respe

<SfCircularGauge CenterX="1%" CenterY="50%">
<CircularGaugeAxes>
<CircularGaugeAxis StartAngle="0" EndAngle="180"></CircularGaugeAxis>
<CircularGaugeAxis StartAngle="0" EndAngle="180">
<CircularGaugePointers>
<CircularGaugePointer></CircularGaugePointer>
</CircularGaugePointers>
</CircularGaugeAxis>
</CircularGaugeAxes>
</SfCircularGauge>
```
{% previewsample "https://blazorplayground.syncfusion.com/embed/VthKiVBGgzfHHcXo?appbar=false&editor=false&result=true&errorlist=false&theme=bootstrap5" %}
{% previewsample "https://blazorplayground.syncfusion.com/embed/rjVIjlXSqSxMwlbd?appbar=false&editor=false&result=true&errorlist=false&theme=bootstrap5" %}

![changing Blazor Circular Gauge Position based on Percent Value](./images/blazor-circulargauge-position-based-on-percentage.png)

Expand Down Expand Up @@ -117,10 +125,13 @@ You can render semi or quarter Circular Gauge by modifying the start and end ang
<CircularGaugeAxis Radius="60%" StartAngle="270" EndAngle="90">
<CircularGaugeAxisLineStyle Width="5">
</CircularGaugeAxisLineStyle>
<CircularGaugePointers>
<CircularGaugePointer></CircularGaugePointer>
</CircularGaugePointers>
</CircularGaugeAxis>
</CircularGaugeAxes>
</SfCircularGauge>
```
{% previewsample "https://blazorplayground.syncfusion.com/embed/LjVqiVBmKJoTIDfY?appbar=false&editor=false&result=true&errorlist=false&theme=bootstrap5" %}
{% previewsample "https://blazorplayground.syncfusion.com/embed/BtLytPNSqewixbwM?appbar=false&editor=false&result=true&errorlist=false&theme=bootstrap5" %}

![Blazor Circular Gauge with Custom Radius and Angle](./images/blazor-circulargauge-custom-radius-angle.png)
112 changes: 89 additions & 23 deletions blazor/circular-gauge/axes.md

Large diffs are not rendered by default.

24 changes: 20 additions & 4 deletions blazor/circular-gauge/dimensions.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,17 @@ You can set the size of the Circular Gauge in pixel as demonstrated below.
```cshtml
@using Syncfusion.Blazor.CircularGauge

<SfCircularGauge Width= "200px" Height= "200px"></SfCircularGauge>
<SfCircularGauge Width= "200px" Height= "200px">
<CircularGaugeAxes>
<CircularGaugeAxis>
<CircularGaugePointers>
<CircularGaugePointer></CircularGaugePointer>
</CircularGaugePointers>
</CircularGaugeAxis>
</CircularGaugeAxes>
</SfCircularGauge>
```
{% previewsample "https://blazorplayground.syncfusion.com/embed/hNrKihBwKMBZGKzB?appbar=false&editor=false&result=true&errorlist=false&theme=bootstrap5" %}
{% previewsample "https://blazorplayground.syncfusion.com/embed/BtBoNvDyhNOaXuis?appbar=false&editor=false&result=true&errorlist=false&theme=bootstrap5" %}

![Changing Blazor Circular Gauge Size in Pixel](./images/blazor-circulargauge-size.png)

Expand All @@ -34,11 +42,19 @@ By setting value in percentage, gauge gets its dimension with respect to its con
@using Syncfusion.Blazor.CircularGauge

<div style="height:450px; width:450px">
<SfCircularGauge Width="50%" Height="50%"></SfCircularGauge>
<SfCircularGauge Width="50%" Height="50%">
<CircularGaugeAxes>
<CircularGaugeAxis>
<CircularGaugePointers>
<CircularGaugePointer></CircularGaugePointer>
</CircularGaugePointers>
</CircularGaugeAxis>
</CircularGaugeAxes>
</SfCircularGauge>
</div>
```

{% previewsample "https://blazorplayground.syncfusion.com/embed/VDhKsVVGACLBzBrP?appbar=false&editor=false&result=true&errorlist=false&theme=bootstrap5" %}
{% previewsample "https://blazorplayground.syncfusion.com/embed/BDBIDljSVWAiPfmX?appbar=false&editor=false&result=true&errorlist=false&theme=bootstrap5" %}

![Changing Blazor Circular Gauge Size in Percentage](./images/blazor-circulargauge-size.png)

Expand Down
Loading