- Online Barcode Generator
- How To
- Buy Now
Bubble chart consists of a series of data points which may be displayed in different shapes, like circle or five-pointed star. In general, the bubble chart will use two XValue/XValue2, and YValue/YValue2 pairs to demonstrate each data object. What's more, the bubble size is in proportion to the data value it presents.
And this page will guide you to create a simple bubble chart in html using C# code with our ASP.NET AJAX SDK. Before doing the modifications using C# code, you need to drag an AjaxPanel item to aspx page and put a chart control from toolbox to that AjaxPanel.
The basic settings are mainly used to control the general appearance of bubble chart graphics.
C# Code for Setting Chart Type
You can set chart type to web bubble chart with either of following two methods.
C# Code for Customizing Chart Skin
Rich chart skin options are supported. And you can use customized template to make your bubble chart display specially.
KaxChart1.Skin = "KetticStyle";
C# Code for Writing Chart Title
Here we offer C# code for adding title to bubble chart, you can modify the chart title font, color, size, position and rotation. If needed, you can view more settings for chart title at setting chart title element in c#.
C# Code for Defining Chart Orientation
Users are able to display the bubble chart either vertically or horizontally.
The settings in this part are mainly used for adding and displaying various data series in bubble chart.
Add Chart Data Series Using C# Code
Using the bubble chart of ASP.NET AJAX, users can easily add one or more data series into bubble chart. And each data category will have a bubble group to display its values. The legend label is also necessary in the bubble chart to descript the data item information. In following example, we will show you how to add two data series into bubble chart. To view more guidance, please follow this link to set chart series element using c#.
Now two data categories have been successfully added to the bubble chart. And in the real application, we may often need to differentiate each data series with different colors so that readers can easily compare the values among different data series. And this performance can be done with the help of following sample C# demo.
code formatted by http://manoli.net/csharpformat/ -->
Define Chart Axis Using C# Code
The axis has two dimensions, which are x axis and y axis. To better present the values of each data series, we need to customize the scaling and spacing values of the axis based on our own data source. If the scaling is too large, the bubble chart will be too small to be read. Here we offer sample C# code for defining and customizing both x axis and y axis settings. If needed, you can view more settings for chart axis at chart axis at set chart axis element with c#.
Now the configuration of aspx.cs file for creating a bubble chart is completed. If you want to view the output of above configurations, please run our bubble chart online demo.
ASP.NET AJAX UI Controls