Information to Series
Series is the most important chart element, which stands for series of data points that are displayed on chart. KT.UI ASP.NET AJAX Chart SDK offers developers and end users easy to use and mature chart series control to add single or multiple series to chart. Different chart type can display and contain different series numbers. As we know, a Pie chart can only display a single series, while Stacked chart and Bar chart can show multiple series of data points.
Within KT.UI ASP.NET AJAX Chart series library, mainly included series properties are: Types, Items, Name, DefaultLabelValue as well as Appearance. Following contents are the detailed instructions to these attributes.
Series Points
This part only focuses on Items property of ChartSeries control. The Item attribute consists of three significant properties: ActiveRegion, Appearance and Label. How to Set XValue and YValue with ASPX Codes
Generally, we can display data values via XValue and YValue(hide the XValue2, YValue2, YValue3 and YValue4). 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 means open, YValue2 means close, YValue3 means Max, and YValue4 means Min data. Now we will show you how to set the vluaes of series points C# asp.net.
How to Set Chart Type with ASPX Codes
We can combine different chart types for two sets of data points that can be displayed in one chart, such as, we can use "ChartSeries.View" object to set one data series displayed in Line type and the other displayed in Bar type. Then the two type charts will add to the chart diagram with collection.
How to Set Empty Value with ASPX Codes
If you want to show blank or null value, or ignore some value in the chart, you can use the empty value property. While display in the web chart, such as bar chart, you may find the one bar is hiden or transparency, and it looks like spliting to two bar charts.
DefaultLabelValue
The format of label values are based on the help of DefaultLabelValue object. If you want to set existing series to specified showing format, you can use this property to limit the selected series.
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}.
Compare with the setting in aspx, the C# code in aspx.cs is very simple.
Appearance Specific PropertiesStyleSet 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. StyleSet in Line and Spline
The LineSeriesAppearance property is specific to the Line and Spline chart types. StartCap and EndCap are the two forms of lines two ends, Width means the line's width and PenStyle is the filled font for line.
StyleSet in Pie
See Also |
ASP.NET AJAX UI Controls ASP.NET AJAX Chart UI Control OverviewGetting StartedChart Element DiagramSeries AxesLegendCaptionTickData 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 |