Private Sub renderDoughtnut()
Dim bunifuBarChart As Bunifu.Charts.WinForms.ChartTypes.BunifuDoughnutChart = New Bunifu.Charts.WinForms.ChartTypes.BunifuDoughnutChart()
' 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
bunifuBarChart.Data = data
' Specify the target canvas
bunifuBarChart.TargetCanvas = bunifuChartCanvas1
' 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"}
bunifuChartCanvas1.XAxesGridLines = False
bunifuChartCanvas1.YAxesGridLines = False
' 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)))
bunifuBarChart.BackgroundColor = bgColors