Chart.aspx parameters
Parameter NameDescriptionAvailable valuesDefault
Required fields
Provider=DBData provider, the system will use class WebDemos.[Provider]DataManager as data provider DB,Yahoo,other custom data provider.
If the parameter is DB, the chart system will use class DBDataManager as the data provider
Code=MSFTStock symbol
Option fields
Span=MONTH6Show stock data for latest 6 monthDAY10,WEEK1,MONTH2,YEAR10 etc.MONTH6
StartTime=20040105Start time of the chart
EndTime=20050101End time of the chart
Skin=RedWhiteChart skinBlackBlue,PinkBlue,GreenRed,
BlackWhite,GreenWhite,CyanGreen,
OceanBlue,RedBlack,RedWhite,Temp,White
RedWhite
Size=800*600Chart size600*800
Cycle=DAY1Data cycleDAY1, WEEK1, MONTH2 etc.DAY1
XFormat=MMMddX-axis text formatIf no value specified, will set by the chart system automatically
YFormat=f2Y-axis text formatIf no value specified, will set by the chart system automatically
TypeStock Render TypeHLCBars,OHLCBars,Line,CandleCandle
MainMain area formula nameDon't specify or MainArea(for intraday chart)
OverOverlay formulas, seperate by semi-colonSAR;ZigW etc.All formulas
INDIndicator area formulas, seperate by semi-colonMACD;RSI etc.All formulas
MAMoving average line, seperate by semi-colon5;13;34 etc.
EMAExp Moving average line seperate by semi-colon5;13;34 etc.
COMPOverlay compare stocks, seperate by semi-colon or comma^DJI
XCycleLabel frequency in X-axisMONTH1
ScaleScaleType of main areaNormal , Log
BMarginBottom margin in the main area, default is zeroPositive number
SV0 mean don't show value label at top of each area0 or 1
XX pos of the cross cursor
YY pos of the cross cursor
LayoutLayout will draw text, icon, rectangle, filled rectangle on to the chart, this is useful when you want to draw text, legend or other informations to the chartLayout should be defined in web.config. if the value is Legend, the chart system will take the value of LegendLayout in web.config


Layout format
Tags used for control:
ChartRect=(0,14,-110,-1) , define the chart area, format (left,top,right,bottom), if right<=0 or bottom<=0 means a distance from right or bottom.
Font=(Verdana,8pt,style=Bold), define the text font, should follow the format of .net FontConverter
Color=Red, define the text color, should follow the format of .net ColorConverter.
Pos=(0,0), move cursor to (x,y), will draw next text or icon at this position.
ColorFont=(Verdana,8pt,style=Bold), font used for ColorText
Align=Right, Right:draw text or icon at right of current position
Left:draw text or icon at left of current position


Tags used for drawing items to the chart:
Back=(0,0,0,14), draw filled rectangle using current color
Frame=(0,0,0,14), draw rectangle using current color
Text=abc, draw text.
ColorText=Prev Close:{LC}O:{OPEN}H:{HIGH}L:{LOW}C:{CLOSE}V:{VOLUME}Chg:{Change} , draw color text.
Icon=up.gif, draw icon at current position, up.gif is a file name, the file should be in assembly path\images\*.*


Text replacment tag
{Name} : Stock Name
{Code} : Stock Symbol
{D:yyyy-MM-dd} : latest stock date
{Company} : company name defined in web.config
{URL} : URL defined in the web.config
{LC} : Previous close
{OPEN} : Open price
{CLOSE}: Close price
{VOLUME} : VOLUME
{Change:p2} : Change percentage

Example: <add key="LegendLayout" value="ChartRect=(0,14,-110,-1);Font=(Verdana,8pt,style=Bold);Color=#F0F0F0;Back=(0,0,0,14);Back=(-110,0,-1,-1);Color=Black;Pos=(0,0);Text=({Name}({Code}));Pos=(-110,0);Text={D};Color=#888888;Frame=(-101,50,-2,121);Color=#eeeeee;Back=(-101,50,-3,120);Align=Right;Pos=(-100,55);Icon=EnterLong.gif;Pos=(-85,56);Color=Black;Text=Enter Long;Pos=(-100,70);Icon=EnterShort.gif;Pos=(-85,71);Color=Black;Text=Enter Short;Pos=(-100,85);Icon=ExitLong.gif;Pos=(-85,86);Color=Black;Text=Exit Long;Pos=(-100,100);Icon=ExitShort.gif;Pos=(-85,101);Color=Black;Text=Exit Short"></add> Show the result