Skip to content

Commit

Permalink
Merge pull request #1 from SuryaKaran2143/master
Browse files Browse the repository at this point in the history
How to draw line series with round cap in Xamarin.Forms
  • Loading branch information
Saravanan-Madhesh committed Aug 24, 2023
2 parents 1f7ebe5 + d2b5f9e commit 9b9762f
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
# How to draw the line series with round cap



It has been achieved by using CustomRenderer by extending the LineSegmnt. Please refer below code snippet.

**PCL:**
## PCL
```
public class ChartExt : SfChart
{
}
```

**Code snippet for Android [C#]:**
## Code snippet for Android [C#]
```
[assembly: ExportRenderer(typeof(ChartExt), typeof(CustomChartRenderer))]
namespace SimpleSample.Droid
Expand Down Expand Up @@ -87,7 +89,7 @@ namespace SimpleSample.Droid
}
```

**Code snippet for iOS [C#]:**
## Code snippet for iOS [C#]

```
[assembly: ExportRenderer(typeof(ChartExt), typeof(CustomChartRenderer))]
Expand Down Expand Up @@ -146,7 +148,7 @@ namespace SimpleSample.iOS
}
```

**Code snippet for UWP [C#]:**
## Code snippet for UWP [C#]

```
[assembly: ExportRenderer(typeof(ChartExt), typeof(CustomChartRenderer))]
Expand Down Expand Up @@ -192,6 +194,6 @@ namespace SimpleSample.UWP
```


**Screenshot:**
## Screenshot

![](Output.png)

0 comments on commit 9b9762f

Please sign in to comment.