Private Sub renderPieChart()
Dim bunifuPieChart As Bunifu.Charts.WinForms.ChartTypes.BunifuPieChart = New Bunifu.Charts.WinForms.ChartTypes.BunifuPieChart()
' For this example we will use random numbers
' Add your data from your source - accepts double list
' Below is an example from a random number
Dim data As List(Of Double) = New List(Of Double)()
For i As Integer = 0 To 5 - 1
data.Add(r.[Next](0, 50))
bunifuPieChart.Data = data
' Specify the target canvas
bunifuPieChart.TargetCanvas = bunifuChartCanvas1
bunifuChartCanvas1.XAxesGridLines = False
bunifuChartCanvas1.YAxesGridLines = False
' Add labels to your canvas
' Label count should correspond to data count for charts like Bar charts
bunifuChartCanvas1.Labels = New String() {"Label1", "Label2", "Label3", "Label4", "Label5"}
' Beautify the chart by sepcifying the colors
' Color count should correspond to data count
Dim bgColors As List(Of Color) = New List(Of Color)()
For i As Integer = 0 To data.Count - 1
bgColors.Add(Color.FromArgb(r.[Next](256), r.[Next](256), r.[Next](256)))
bunifuPieChart.BackgroundColor = bgColors