Bunifu Polar Chart
Add stunning polar charts to your data applications.
Last updated
Add stunning polar charts to your data applications.
Last updated
Bunifu Polar Chart is a chart component that displays two-dimensional (2D) circular layout chart data in polar coordinates, comprising of several equal-angled segments. What varies is the segment's radius which varies depending on the value it has been set. It is helpful in presenting scales that facilitate comparison between several quantitative aspects of a situation. The example below illustrates how Bunifu Polar Chart has been beautifully crafted to display the app's data.
This section explains the steps required to start creating a simple polar chart and demonstrates the primary usage of the chart control.
Step 1: Drag the canvas control to the form from the toolbox.
Step 2: Access the canvas label property and add the following values in the collection editor.
Step 3: In the property section, set ShowXAxis
, ShowYAxis, XAxesGridLines
and YAxesGridlines
properties to have a false value.
Step 4: Add BunifuPolarChart component to the form by dragging it from the controls' toolbox panel.
Step 5: To begin, go to the label property of the polar chart and set it to, for example, Share of State tax collection.
Step 6: On the target property of the Polar component, select bunifuCanvas1
as the target component.
Step 6: Access BunifuPolarChart's Data property and populate the collection editor with the following values:
Step 8: Set a list of colors in the BackgroundColor/colors property to specify the back color for each sector in the pie chart. For instance, the following is a list of colors assigned to the sectors in the color collection editor.
Copy each of the following R.G.B color sets to the color editor:
128, 255, 0
0, 255, 0
0, 255, 128
0, 255, 255
0, 128, 255
0, 0, 255
Step 9: Run the application.
We can code and render a polar chart without using the design view. Here's how to do it:
Let us examine Bunifu Polar charting properties.
This property gets or sets a collection of values, which will be presented on the polar chart. The order in which data values are added to the property corresponds to the order in which the canvas's label values are input.
Setting and assigning data to the polar chart can be done by either using the Data
property found on the property pane of the design mode or using code. The example below illustrates using both C# and VB.NET codes to populate the polar chart with data at run-time:
Here's the polar chart output of the code above:
This property gets or sets the canvas which will render the polar chart.
Take note of the following properties to be modified on the targetted canvas:
a) Set the ShowXAxis and ShowYAxis to false
.
b) Additionally, set the properties XAxesGridLines and YAxesGridLines to false
.
This property gets or sets a fill color to the polar segments. We can specify the colors using the Red Green Blue (RGB)
color format as well as the Alpha, Red, Green, and Blue (ARGB)
color values in the color collection editor.
The background color of each sector is set by adding color sets for each segment in the color selection editor as shown below:
Each color set will correspond with the order of the data provided in the Data property.
Let's provide each segment with its background color as shown below via code:
Here's the output of the back colors from the code above:
This property gets or sets a color set to a segment border. The sample form illustrates a polar chart with the border color set to:100, 0, 123
Alternatively, we can set each polar segment to have its border color by adding additional color sets to its color collection editor.
Take note that the order in which the border colors in the color collection editor are set will correspond to the order in which the data in the Data property is defined.
This property gets and sets an integer value that changes the width of the polar segment boundary. The greater the value, the denser the segment borders.
This property sets a fill color value to a polar segment in which the mouse pointer is suspended.
This property changes the border's color around the polar segment that the mouse pointer is hovering over.
This property specifies an integer value that alters the boundary width of a targetted polar segment over which the mouse pointer is hovering.
Bunifu Polar Chart is in essence a great chart tool that can be used as live statistical diagrams in your data-centric applications. We can name it a " radially plotted bar chart " since the chart is a cross between a bar chart (using length as a pre-attentive feature) and a pie chart (radial in nature, segments that are wider at the top, thinner in the center, ie. polar coordinates). This helps us understand the form of the chart as a means for representing data.