Table of Contents


aspx:SerialChart

Serial Chart allows the creation of bar, area or line charts. Using this component, you can show one or more graphs at the same time.

 

Sample of bar chart:

<aspx:SerialChart runat="server" height="300px" dataUrl="/aspx/chartsplayground/accountsbytype" categoryField="Type" rotate="true">
 <Graphs>
   <aspx:Graph type="column" valueField="Count" title="Account Type" balloonText="$[[value]]"/>
 </Graphs>
 <legend useGraphSettings="true"/>
 <categoryAxis labelRotation="30"/>
</aspx:SerialChart>

 

Sample data:

{
  "Type": "Gold Partners",
  "Count": 1203,
  "AverageNew": 7
},
{
  "Type": "Silver Partners",
  "Count": 845,
  "AverageNew": 3
},
{
  "category": "Bronze Partners",
  "Count": 983,
  "AverageNew": 4
}

 


SerialChart Properties

PropertyTypeDescription
Angleint 
Depth3Dint 
CategoryFieldstringField name used 
CategoryAxisobjectSettings for category axis of the chart see below
ColorsstringList of colors - comma-separated
LegendObjectType of Legend
GraphsObjectList of graphs to be shown for the given category value
TitlestringTitle of the chart
Rotatebool 
DataUrlstringJSON resource URL
DataHttpTypestringGET or POST
ValueAxisobjectSettings of the value axis, see below.
WidthPixel unitValues such as "200px" or "100%"
HeightPixel unit"300px", do not use percent values for best results.

 

Graph Properties

PropertyTypeDescription
balloonTextstringHow the balloon text should be formatted
Default: [[title]] of [[category]]:[[value]]
clusteredbool 
colorFieldstringField in the dataset that designates the color of the graph
typepicklistValues: column, line, smoothedLine, step
fillAlphasfloatdefault:1
labelTextstring 
lineThicknessint 
lineAlphaintdefault:1 
titlestring 
valueFieldstringThe field in the data source should be shown as the value of this graph. 

 

CategoryAxis Properties

PropertyTypeDescription
positionpicklistThe field in the data source should be shown as the value of this graph.
NotSet, Top, Middle, Bottom
Default: bottom
labelRotationint 
gridPositionstringValues:start, middle
default:start
titleColorcolorHex sting value of the title color

 

ValueAxis Properties

PropertyTypeDescription
positionpicklist"left","right"
Default: "left"
titlestring 
titleColorstring 
precisionshortNumber of decimal places shown
stackTypepicklist"regular","100%","3D"
unitstringExamples: "kg" or "cm",
Value will be to the left or right of the value Axis.
unitPositionpicklistValues: "left", "right"
Default: "right"