Similar to spline chart, the Bezier chart also display data points with a curved line. But different from spline chart, Bezier Chart allows users to determine the position and degree of curvature in the line between the two data points. This tutorial will guide you to create Bezier Chart using C# programming code. Basic Settings
The basic settings are mainly used to control the general appearance of bezier chart graphics. C# Code for Setting Chart Type
You can set chart type to bezier chart with either of following two methods.
C# Code for Customizing Chart Skin
Rich chart skin options and chart templates are supported. KaxChart1.Skin = "KetticStyle"; C# Code for Writing Chart Title
Here we offer C# code for adding title to bezier chart, you can rotate the title, define the title font and color, resize the title. 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 bezier chart either vertically or horizontally. KaxChart1.SeriesOrientation = ChartSeriesOrientation.Horizontal; Bezier Settings
The settings in this part are mainly used for adding and creating various data series in bezier chart. Add Chart Data Series Using C# Code
Making the bezier chart of ASP.NET AJAX, users can easily add multiple data series into bezier chart. And each bezier category will have a bezier group to display its values. In following example, we will show you how to add two data series into web bezier chart. To view more guidance, please follow this link to set chart series element using c#. What should be mentioned specifically here is that users must add (1 + 3 x N) items to each data series when creating bezier chart. This can be counted as a unique feature of bezier chart.
Now two data categories have been successfully added to the bezier chart. And in the real application, we may often need to differentiate each bezier group with different colors so that readers can easily compare the values among different data series. Besides, different legend description can also separate the data categories out. And this performance can be done with the help of following sample C# code.
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 bezier chart will be too small to be read. Here we offer sample C# code for defining and customizing both x axis and yaxis 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 bezier chart is completed. If you want to view the output of above configurations, please run our bezier chart online demo. |
ASP.NET AJAX UI Controls ASP.NET AJAX Chart UI Control OverviewGetting StartedChart Element DiagramSeriesAxesLegendCaptionTickData GridChart Type Bar ChartPoint ChartLine ChartPie ChartArea ChartGantt ChartBubble ChartBezier ChartSpline ChartSpline Area ChartCandle Chart Chart With StackedFull Stacked ChartFeatures Automatic LayoutAutomatic Text-wrappingScrollingEmpty ValuesScale BreakMultiline LabelsWise LabelsMarking AreasMultiple TypesInteractiveDrill DownShadowEdtingData Binding Array DataList DataDatabase DataXML DataChart Style Chart SkinASP.NET AJAX Grid UI Control |