登录 注册
当前位置:主页 > 资源下载 > 50 > 中文版amcharts教程,包含柱状图、饼状图等图表的设置说明

中文版amcharts教程,包含柱状图、饼状图等图表的设置说明

  • 更新:2024-09-24 20:10:44
  • 大小:24KB
  • 推荐:★★★★★
  • 来源:网友上传分享
  • 类别:其它 - 开发技术
  • 格式:XML

资源介绍

xml <!-- [xml] (xml / csv) 数据类型xml/csv--> ; <!-- 如果使用csv作为数据的话,需要使用这个属性;表示文件数据分隔符,(平常以";"和","为主) [;] (string) csv file data separator (you need it only if you are using csv file for your data) --> 1 <!-- 如果使用的是csv数据,可以设置跳过几行再显示数据,默认为0表示csv中的数据全部显示,大于n(n>0);表示前面n行都不显示[0] (Number) if you are using csv data type, you can set the number of rows which should be skipped here --> <!-- 设置系统中的字体[Arial] (font name) use device fonts, such as Arial, Times New Roman, Tahoma, Verdana... --> <!-- 设置所有文本的大小,默认为11,具体的文本的字体大小也可以在下面的设置中设置[11] (Number) text size of all texts. Every text size can be set individually in the settings below --> <!-- 同上[#000000] (hex color code) main text color. Every text color can be set individually in the settings below--> . <!-- 小数分隔符,默认为[,]注:该属性只是用来显示,而在csv数据文件中,必须使用[.] (string) decimal separator. Note, that this is for displaying data only. Decimals in data xml file must be separated with a dot --> <!-- 千位分隔符,默认为空[ ] (string) thousand separator. use "none" if you don't want to separate --> 3 <!-- 如果百分数格式的数字,后面的小数位小于该属性的值,则在小数后面加0补充。如54.2%,该属性设置为3,那么显示的效果为54.200%。[] (Number) if your value has less digits after decimal then is set here, zeroes will be added --> <!--设置科学记数法的最小值 [0.000001] If absolute value of your number is equal or less then scientific_min, this number will be formatted using scientific notation, for example: 0.0000023 -> 2.3e-6 --> <!-- 设置科学计数法的最大值[1000000000000000] If absolute value of your number is equal or bigger then scientific_max, this number will be formatted using scientific notation, for example: 15000000000000000 -> 1.5e16 --> <!-- 数据多久一次被重载进来,时间以秒计算,默认为0表示不重载[0] (Number) how often data should be reloaded (time in seconds) --> <!-- [false] (true / false) Whether to show preloaded when data or settings are reloaded --> <!-- 如果图形的在宽带和高度使用百分比来设置的,并且该属性设置为true,那么当图形的窗口大小改变的时候,那么图形也会重新绘画,改变大小。默认为false[false] (true / false) if your chart's width or height is set in percents, and redraw is set to true, the chart will be redrawn then screen size changes --> <!-- [false] (true / false) if true, a unique number will be added every time flash loads data. Mainly this feature is useful if you set reload _data_interval --> 3 <!-- 表示逗号后面显示几位数字[2] (Number) shows how many numbers should be shown after comma for calculated values (percents) --> false <!-- [false] (true / false) whether to exclude invisible slices (where alpha=0) then calculating percent values or not --> <!-- 如果没有用flash,需要设置该属性为false[true] (true / false) In case you don't use any flash - JavaScript communication, you shuold set this setting to false - this will save some CPU and will disable the security warning message which appears when opening the chart from hard drive. --> <!-- 设置pie图像x轴的位置;默认为整个框架的50%,([50%](Number(左边为起始点) / Number% / !Number(表示右边为起点开始) --> <!-- 同上[45%](Number / Number% / !Number) --> 90 <!-- 半径[25%] (Number / Number%) --> 40 <!-- 内部半径,即内部为空[0] (Number / Number%) the radius of the hole (if you want to have donut, use > 0) --> 11 <!-- 高度,用于3D效果[0] (Number) pie height (for 3D effect) --> 20 <!-- 倾斜角度[0] (0 - 90) lean angle (for 3D effect) --> 190 <!-- 第一个数据切片的角度[90] (0-360) angle of a first slice. This will work properly only if is set to 0. If height is > 0, then there can be two angles only: 90 and 270 --> <!-- 轮廓的颜色[#FFFFFF] (hex color code) --> <!-- 轮廓透明度[0] (Number) --> <base_color></base_color> <!-- 第一个切片的颜色[] (hex color code) color of first slice --> <!-- 根据第一个切片的颜色,然后通过该属性的值,进行增减,或这递减,使用负数则往黑色靠拢。[20] (-100 - 100) if base_color is used, every next slice is filled with lighter by brightnessStep % color. Use negative value if you want to get darker colors --> <!-- [#FF0F00,#FF6600,#FF9E01,#FCD202,#F8FF01,#B0DE09,#04D215,#0D8ECF,#0D52D1,#2A0CD0,#8A0CCF,#CD0D74,#754DEB,#DDDDDD,#999999,#333333,#990000] (hex color codes separated by comas) --> <link_target>_blank</link_target> <!-- 如果在数据中,有设置了link,则该属性表示目标,[] (_blank, _top...) If pie slice has a link this is link target --> 100 <!-- 设置透明度[100] (0 - 100) slices alpha. You can set individual alphas for every slice in data file. If you set alpha to 0 the slice will be inactive for mouse events and data labels will be hidden. This allows you to make not full pies and donuts. --> <!-- 设置当鼠标移到切片时,切片是否变亮,或则变暗[0] (from -255 to 255) The pie slice may darken/lighten when the use rolls over it. The intensity may be set here --> <!-- 光线,使用线型,或放射状的来填充切片[] (linear/radial) Allows slices to be filled with gradient colors --> <!-- 控制光线比率[0,-40] (Numbers from (-255 to 255) separated by commas) Controls the gradient ratio --> <!-- 设置动态效果 --> 2 <!-- 飞进来的时间[0] (Number) fly-in time in seconds. Leave 0 to appear instantly --> strong <!-- 飞进来的效果[bounce反弹的效果] (bounce, regular, strong) --> <!-- 飞进来的半径,即从多远的地方飞过来的[500%] (Number / Number%) --> <!-- 飞进来时的透明度。[0] (Number) --> true <!-- 飞进来的顺序,false为一起进来,true为按顺序[false] (true / false) Whether the slices should appear all together or one after another --> <!-- 点击一下切片是否弹出去[true] (true / false) whether to pull out slices when user clicks on them (or on legend entry) --> 1.5 <!-- 弹出去的时间[0] (number) pull-out time (then user clicks on the slice) --> Bounce <!-- 弹出去的效果[bounce] (bounce, regular, strong) --> <!-- 弹出去的半径,即弹出去多远的位置[20%] (Number / Number%) how far pie slices should be pulled-out then user clicks on them --> false <!-- 是否只允许一个弹出去,一个弹出去,其他切片就收回[false] (true / false) if set to true, when you click on any slice, all other slices will be pushed in --> <!-- 数据标签 --> <!-- 数据标签的半径,使用负数则标签显示在图像上[20%] (Number / Number%) distance of the labels from the pie. Use negative value to place labels on the pie --> #FFFFFF <!-- 标签颜色[text_color] (hex color code) --> 12 <!-- 标签大小[text_size] (Number) --> <!-- 标签显示的最大宽度[120] (Number) --> <![CDATA[{title}: {percents}%]]> <!-- 显示的格式[] ({value} {title} {percents} {description}) You can format any data label: {value} - will be replaced with value and so on. You can add your own text or html code too. --> <!-- 是否显示线条[true] (true / false) whether to show lines from slices to data labels or not --> #FFFFFF <!-- 线条颜色[#000000] (hex color code) --> 100 <!-- 线条透明度[15] (Number) --> <!-- 当切片的值小于该属性的值,将隐藏图像中的标签内容[0] data labels of slices less then skip_labels_percent% will be hidden (to avoid label overlapping if there are many small pie slices)--> <!-- 是否避免标签之间的重叠[true] (true / false) Whether to change data labels positions so that they wouldn't overlap or not -->