Series is the most important chart element, which stands for single and multiple series of data points that are displayed on chart. KT.UI C# ASP.NET AJAX Chart SDK offers client users the comprehensive chart series control to add user-defined series to chart.
This page is designed to help users easily and quickly add chart series and modify its properties via C# programming language. You can rename the series item, change the series order, define the series format, add a new series, update or delete an existed series data in the network chart control. Series Items
This part is designed to demonstrate Items property of C# ChartSeries control. The Item attribute consists of three significant properties: ActiveRegion, Appearance and Label. How to Set XValue and YValue with C# Codes
Generally, we can display data values via XValue and YValue(hide the other axis values). While in Gantt and Bubble chart, we need to use XValue2 and YValue2 to show the value of a set of data points with XValue and YValue. And in CandleStick chart, we use YValue3 and YValue4 to show certain information. In CandleStick char, YValue stands for open, YValue2 stands for close, YValue3 stands for Max, and YValue4 stands for Min. See following C# demo codes.
When the chart types are Gantt and Bubble, we can set YVlaue and YVlaue2. ChartSeriesItem item = newChartSeriesItem();
When the chart type is CandleSticked, we can set YValue, YValue2, YValue3 and YValue4. ChartSeriesItem item = newChartSeriesItem(); How to Set Chart Type with C# Codes
We can use different chart types for two sets of data points, and combine the two type chart to a whole chart using C# code, such as, we can use "ChartSeries.Type" object to set one data series displayed in Line type and the other displayed in Bar type. KaxChart1.Series[0].Type = ChartSeriesType.Bar; How to Set Empty Value with C# Codes
If you set empty value in the series, our chart tool can identify the null value, and will draw this series as blank or transparent. Check out following C# sample codes to set empty value. ChartSeriesItem item = newChartSeriesItem(); DefaultLabelValue
The format of label values can be automatically displayed with the help of C# DefaultLabelValue object.
Besides, we also can use the formats in MSDN, but we need to use curly brackets to contain the standard numeric formats, for example: #X{F}.
Appearance Specific PropertiesAppearance in Bubble
The BubbleSize property is specific to the Bubble chart type and allows you to increase or decrease bubble size without distorting the shape.
Appearance in Line and Spline
The LineSeriesAppearance property is applied to the Line and Spline chart types. Users can refer to following C# codes to set Line and Spline appearances. KaxChart1.Series[0].Appearance.LineSeriesAppearance.StartCap = System.Drawing.Drawing2D.LineCap.Round; Appearance in Pie
Specific Pie chart visualization appearance attributes are listed below.
C# sample codes for set Pie chart appearance. KaxChart1.Series[0].Appearance.StartAngle = 90; | ![]() 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 |