【www.gdgbn.com--js教程】

flash js fusioncharts 参数详解与参考
objects anchors 锚点 用于标识line或area的数值点 支持效果 animation 动画、shadow 阴影、glow 发光、bevel 倾斜、blur 模糊 动画属性 _alpha、_x、_y、_xscale、_yscale background 整个图表的背景 支持属性 animation、shadow、glow、bevel、blur 动画属性 _alpha


objects
anchors 锚点 用于标识line或area的数值点
支持效果 animation 动画、shadow 阴影、glow 发光、bevel 倾斜、blur 模糊
动画属性 _alpha、_x、_y、_xscale、_yscale
background 整个图表的背景
支持属性 animation、shadow、glow、bevel、blur
动画属性 _alpha、_x、_y、_xscale、_yscale
canvas 区域图中的区域
支持属性 animation、shadow、glow、bevel、blur
动画属性 _alpha、_x、_y、_xscale、_yscale
caption 图表标题
subcaption 图表子标题
支持属性 animation、shadow、glow、bevel、blur、font 字体
动画属性 _alpha、_x、_y
datalabels 数据的x轴标签列表
支持属性 animation、shadow、glow、bevel、blur、font 字体
动画属性 _alpha、_x、_y
dataplot 数据细节(如:2d图表中的列)
支持属性 animation、shadow、glow、bevel、blur
动画属性 _alpha、_x、_y、_xscale、_yscale
datavalues 图表数据
支持属性 animation、shadow、glow、bevel、blur、font 字体
动画属性 _alpha、_x、_y
divlines 水平的列表区域(由div组成的线)
支持属性 animation、shadow、glow、bevel、blur
动画属性 _alpha、_x、_y、_xscale
hgrid 水平的两个列表区域中交替的颜色
支持属性 animation、shadow、glow、bevel、blur
动画属性 _alpha、_x、_y、_xscale、_yscale
vdivlines 垂直的列表区域
vgrid 垂直的两个列表区域中交替的颜色
vlines 垂直分割线
xaxisname x轴名称
yaxisname y轴名称
yaxisvalues y轴的值列表

 

tooltip 在鼠标移动到数据点上的时候的提示
支持属性 font
trendlines 趋势线
trendvalues
chart
functional attributes
animation bool 是否使用动画
palette number(1-5) 使用默认的调色板
connectnulldata bool 是否呈现空值(?猜测)
showlabels bool 是否显示标签
labeldisplay string (wrap,stagger,rotate or none ) 标签的呈现方式(超长屏蔽、折行、倾斜还是不显示)
rotatelabels bool
slantlabels bool
labelstep number (1 or above)
staggerlines number (2 or above) 多少个字符后折行(labeldisplay=stagger)
showvalues bool 是否一直显示数据值在数据点上
rotatevalues bool 是否滚动显示值 (showvalues=1)
showyaxisvalues bool 是否显示y轴数据
showlimits bool
showdivlinevalues bool
yaxisvaluesstep number (1 or above) y轴标记的显示间隔
adjustdiv bool 自动调整divlines
rotateyaxisname bool
yaxisnamewidth number (in pixels)
clickurl string 图表的焦点链接地址
defaultanimation bool 是否开启默认动画
yaxisminvalue number y轴中最小值
yaxismaxvalue number y轴中最大值
setadaptiveymin
chart titles and axis names
caption
subcaption
xaxisname
yaxisname
chart cosmetics
bgcolor color 可以使用逗号分割多个颜色值 ff5904,ffffff
bgalpha number (0-100) 透明度
bgratio number (0-100) 多个颜色值所占的比率
bgangle number (0-360) 角度
bgswf string 背景flash,但必须在同一个域下
bgswfalpha number (0-100)
canvasbgcolor color 区域背景颜色
canvasbgalpha
canvasbgratio
canvasbgangle
canvasbordercolor
canvasborderthickness number (0-5) 边框厚度
canvasborderalpha
showborder bool
bordercolor
borderthickness number in pixels
borderalpha
data plot cosmetics
showplotborder bool
plotbordercolor
plotborderthickness (0-5)pixels
plotborderalpha
plotborderdashed bool 是否使用虚线
plotborderdashlen number in pixels
plotborderdashgap number in pixels
plotfillangle number 0-360
plotfillratio number 0-100
plotfillalpha
plotgradientcolor color 渐变颜色
showshadow bool 是否显示阴影
plotfillcolor
anchors
drawanchors bool
anchorsides number 3-20 边数
anchorradius number in pixels 半径
anchorbordercolor color hex code
anchorborderthickness number in pixels
anchorbgcolor
anchoralpha
anchorbgalpha
divisional lines & grids
numdivlines number >0 水平区域线数量
divlinecolor
divlinethickness number 1-5
divlinealpha
divlineisdashed bool 虚线
divlinedashlen
divlinedashgap
zeroplanecolor
zeroplanethickness
zeroplanealpha
showalternatehgridcolor
alternatehgridcolor
alternatehgridalpha
numvdivlines
vdivlinecolor
vdivlinethickness
vdivlinealpha
vdivlineisdashed
vdivlinedashlen
vdivlinedashgap
showalternatevgridcolor
alternatevgridcolor
alternatevgridalpha
number formatting
formatnumber bool
formatnumberscale bool
defaultnumberscale string
numberscaleunit string
numberscalevalue string
numberprefix string
numbersuffix string
decimalseparator string
thousandseparator string
indecimalseparator string
inthousandseparator string
decimals number 0-10
forcedecimals bool
yaxisvaluedecimals number 0-10
font properties
basefont
basefontsize number 0-72
basefontcolor
outcnvbasefont cnv canvas
outcnvbasefontsize
outcnvbasefontcolor
tool-tip
showtooltip bool
tooltipbgcolor
tooltipbordercolor
tooltips教程epchar
chart padding & margins
captionpadding
xaxisnamepadding
yaxisnamepadding
yaxisvaluespadding
labelpadding
valuepadding
chartleftmargin
chartrightmargin
charttopmargin
chartbottommargin
canvasp教程adding
set element
label string
value number
color color hex code
link string
tooltext string
showlavel
showvalue
dashed
alpha
anchorsides
anchorradius
anchorbordercolor
anchorborderthickness
anchorbgcolor
anchoralpha
anchorbgalpha
vertical data separator lines

 

color
thickness
alpha
dashed
dashlen
dashgap
trend-lines

   

startvalue
endvalue
displayvalue
color
istrendzone
showontop
thickness
alpha
dashed
dashlen
dashgap
valueonright

 

==============旧版本================================

fusioncharts 的 xml标签属性有一下四种数据类型
* boolean - 布尔类型,只能为1或者0。例如:
* number - 数字类型,只能为数字。例如:
* string - 字符串类型,只能为字符串。例如:
* hex color code - 十六进制颜色代码,前边没有’#’.例如:

xml中的标签和属性有:
所具有的属性
flash背景参数:
* bgcolor=”hexcolorcode” : 设置flash的背景颜色
* bgalpha=”numericalvalue(0-100)” : 设置背景的透明度
* bgswf=”path of swf file” : 设置一个外部的flash 为flash的背景
图表背景参数:
* canvasbgcolor=”hexcolorcode” : 设置图表背景的颜色
* canvasbasecolor=”hexcolorcode” : 设置图表基部的颜色
* canvasbasedepth=”numerical value” : 设置图表基部的高度
* canvasbgdepth=”numerical value” : 设置图表背景的深度
* showcanvasbg=”1/0′ : 设置是否显示图表背景
* showcanvasbase=”1/0′ : 设置是否显示图表基部
图表和轴的标题
* caption=”string” : 图表上方的标题
* subcaption=”string” : 图表上方的副标题
* xaxisname= “string” : x轴的名字
* yaxisname= “string” : y轴的名字
图表数量值的限制
* yaxisminvalue=”value”: y轴最小值
* yaxismaxvalue=”value”: y舟最大值
通用参数
* shownames=”1/0′ : 设置是否在x轴下显示里指定的name
* showvalues=”1/0′ : 设置是否在柱型图或饼型图上显示数据的值
* showlimits=”1/0′ : 设置是否在图表的y轴坐标上显示最大最小的数据值
* rotatenames=”1/0′ : 设置x轴下的name 是水平显示还是垂直显示
* animation=”1/0′ : 设置柱型图的显示是否是动画显示
字体属性
* basefont=”fontname” : 设置字体样式
* basefontsize=”fontsize” : 设置字体大小
* basefontcolor=”hexcolorcode” : 设置字体颜色
* outcnvbasefont = “fontname” : 设置图表外侧的字体样式
* outcnvbasefontsze=”fontsize” : 设置图表外侧的字体大小
* outcnvbasefontcolor=”hexcolorcode”: 设置图表外侧的字体颜色
数字格式选项
* numberprefix=”$” : 设置数据值的前缀
* numbersuffix=”p.a” : 设置数据值的后缀(如果是特殊字符,需要使用url encode重编码)
* formatnumber=”1/0′ : 设置是否格式化数据
* formatnumberscale=”1/0′ : 设置是否用“k”来代表千,“m”来代表百万
* decimalseparator=”.” : 用指定的字符来代替小数点
* thousandseparator=”,” : 用指定的字符来代替千位分隔符
* decimalprecision=”2′ : 设置十进制的精度
* divlinedecimalprecision=”2′: 设置y轴数值的小数位数
* limitsdecimalprecision=”2′ : 设置y轴的最大最小值的小数位数
水平分隔线
* numdivlines=”numericalvalue” : 设置水平分隔线的数量
* divlinecolor=”hexcolorcode” : 设置水平分隔线的颜色
* divlinethickness=”numericalvalue” : 设置水平分隔线的宽度
* divlinealpha=”numericalvalue0-100′ : 设置水平分隔线的透明度
* showdivlinue=”1/0′ : 设置是否显示水平分隔线的数值
鼠标旋停参数
* showhovercap=”1/0′ : 显示是否激活鼠标旋停效果
* hovercapbgcolor=”hexcolorcode” : 设置鼠标旋停效果的背景颜色
* hovercapbordercolor=”hexcolorcode” : 设置鼠标旋停效果的边框颜色
* hovercapsepchar=”char” : 设置鼠标旋停后显示的文本中的分隔符号
图表边距的设置
* chartleftmargin=”numerical value (in pixels)” : 设置图表左边距
* chartrightmargin=”numerical value (in pixels)” : 设置图表右边距
* charttopmargin=”numerical value (in pixels)” : 设置图表上边距
* chartbottommargin=”numerical value (in pixels)” : 设置图表下边距
zero plane
the zero plane is a 3d plane that signifies the 0 position on the chart. if there are no negative numbers on the chart, you won’t see a visible zero plane.
* zeroplaneshowborder=”1/0′ : whether the border of a 3d zero plane would be plotted or not.
* zeroplanebordercolor=”hex code” : if the border is to be plotted, this attribute sets the border color for the plane.
* zeroplanecolor=”hex code” : the intended color for the zero plane.
* zeroplanealpha=”numerical value 0-100′ : the intended transparency for the zero plane.

所具有的属性
* name=”string” : 设置在图表中体现出来的名字
example:
* value=”numericalvalue” : 设置在图表中各个名字想对应的值
example:
* color=”hexcode” : 设置在图表中相对应的柱行图的颜色
example:
* hovertext=”string value” : 设置鼠标旋停在相对应的柱行图 上出现的文本内容
example:
* link=”url” : 设置该柱行图的链接地址(需要url encode重编码)
example:
* alpha=”numerical value 0-100′ : 设置在图表中相对应的柱行图的透明度
example:
* showname=”1′ : 设置在是否显示图表中相对应的柱行图的name

本文来源:http://www.gdgbn.com/wangyezhizuo/29952/