分为两个配置文档:设置文档和数据文档。
amxy1.addVariable(“settings_file”, encodeURIComponent(“amxy_settings.xml”));
amxy1.addVariable(“data_file” , escape(“amxy_data.xml”));
关于设置文档:amxy_setting.xml
the top left corner has coordinates x = 0, y = 0:左上角是坐标原点。
<setting>
<data_type>:设置数据格式(xml,csv),默认是[/xml]
<csv_separator>:如果是数据格式是csv,设置数据分隔符,默认是[;]
<skip_rows>:如果是数据格式是csv,设置需要跳过的行数,默认是[0]
<font>:设置字体,默认是[Arial]
<text_size>:设置字体大小,默认是[11]
<text_color>:设置字体颜色,默认是[#000000]
<decimals_separator>:默认是[,]
<thousands_separator>:千位分隔符,默认是[ ]
<digits_after_decimal>:默认是[]
<scientific_min>:默认是[0.000001]
<scientific_max>:默认是[1000000000000000]
<redraw>:如果宽和高设置为百分比,如果设置为[true],则图形会随屏幕按比例显示,默认是[false]
<reload_data_interval>:重载数据的时间段,默认为[0]
<preloader_on_reload>:在数据或者设置文档重载的时候,是否显示缓存数据。默认为[false]
<add_time_stamp>:如果为true,flash在加载数据时会加一个时间戳,这个设置应该和<reload_data_interval>配合使用,默认是[false]
<depth>:图表和列的深度(设置3D效果),默认为[0]
<angle>:图标和列的角度(设置3D效果),默认为[30](0-90)
<link_target>:默认为[](_blank,_top,……)
<mask>:如果是true,气泡和数据标签将被屏蔽,<zoom>将起作用,默认是[true]
<color>:如果图形没有设置颜色,这些颜色将被使用。[#FF6600,#FCD202,#B0DE09,#0D8ECF,#2A0CD0,#CD0D74,#CC0000,#00CC00,#0000CC,#DDDDDD,#999999,#333333,#990000]
<js_enabled>:是否使用javascript,默认为[true]
<background>:关于背景
<color>:分隔颜色,默认为[#FFFFFF]
<alpha>:设置背景颜色或者背景图片的透明度,默认为[0](0-100)
<border_color>:默认为[#000000]
<border_alpha>:默认为[0](0-100)
<file>:设置背景图片地址
<plot_area>:关于绘图区,轴之间的区域
<color>
<alpha>
<border_color>
<border_alpha>
<margins>
<left>:默认为[60]
<top>
<right>
<bottom>
<grid>
<x>:关于x轴
<color>
<alpha>:默认为[15](0-100)
<dasheh>:设置是否为虚线,默认为[false]
<dash_length>:如果为虚线,设置虚线的长度,默认为[5]
<approx_count></approx_count>:默认为[10]
<fill_color></fill_color>:默认为[#FFFFFF]
<fill_alpha></fill_alpha>:默认为[0]
<y>
同x轴
<value>
<x>
<enabled>:默认为[true]
<type>:默认为[number] (number / date / duration),设置date和duration需要在<data_formats>中设置时间的格式
<reverse>:是否反向,反向后将从数字大的开始,默认为[false]
<min>:最小值,默认为[]。如果为空,则自动计算。如果是data类型,需要在这里定义
<max>:最大值,同上
<strict_min_max>:默认[fasle]
<frequency>:默认为[1]
<rotate>:旋转,默认为[0](0-90)
<skip_first>:跳过第一条值,默认为[true]
<skip_last>:跳过最后一条值,默认为[false]
<color>:
<text_size>:
<unit>:
<unit_position>:默认为[right](right/left)
<integers_only>:是否只能为整数,默认为[false]
<inside>:如果设置为ture,轴将绘入绘图区。如果设置了旋转,这个设置将无效。默认为[false]
<y>:同x轴
<axes>
<x>
<color>:默认为[#000000]
<alpha>:默认为[100]
<width>:默认为[2]
<tick_length>:默认为[7]
<logarithmic>:对数,默认为[false]
<y>:同x轴
<data_formats>
<date_input>:默认为[YYYY-MM-DD hh:mm:ss]
< duration_input>:默认为[ss],(DD, mm, hh, ss),只有当<value>-<type>设置成duration时才有效
<axis_values> :
<ss first=”month DD, YYYY” regular=”hh:mm:ss”/>
<mm first=”month DD, YYYY” regular=”hh:mm”/>
<hh first=”month DD, YYYY” regular=”hh:mm”/>
<DD first=”month DD, YYYY” regular=”month DD”/>
<MM first=”month, YYYY” regular=”month”/>
<YYYY first=”YYYY” regular=”YYYY”/>
<ballon>:默认为[month DD, YYYY],气泡的数据格式
<data_labels>:默认为[month DD, YYYY],数据标签的数据格式
<balloon>
<enabled>:默认为[true]
<color>
<alpha>
<text_color>
<text_size>
<max_width>:默认为[220]
<corner_radius>
<border_width>
<border_alpha>
<border_color>
<bullets>
<hover_brightness>:默认为[0] (from -255 to 255),设置强度
<grow_time>:动画时间,默认为[0]
<sequenced_grow>:是否设置动画,默认为[false]
<grow_effect>:默认为[elastic] (elastic, regular, strong),设置动画效果
<max_size>:默认为[50]
<min_size>:默认为[0]
<scroller>
<enabled>:默认为[ture],是否显示滚轮
<color>:默认为[#DADADA]
<alpha/>
<bg_color/>:默认为[#F0F0F0]
<bg_alpha />
<height />:默认为[10]
<zoom>
<enabled>:是否显示变焦,默认为[ture]
<max_factor/>:默认为[20]
<border_color/>:默认为[#BBBB00]
<border_alpha/>
<bg_color/>
<bg_alpha/>
<target/>
<disable_axis/>:禁止维度,可以设置禁止x轴或者y轴
<zoom_out_button>
<x/>:设置按钮的x轴位置,默认为在右边
<y/>:设置按钮的y轴位置,默认为在上边
<color/>
<alpha/>
<text_color/>
<text_color_hover/>
<text_size/>
<text/>:按钮显示的文字,默认为[Show all]
<legend>
<enabled>:默认为[true],是否显示图例。
<x>:
<y>
<width>
<max_columns>
<color/>
<alpha/>
<border_color/>
<border_alpha/>
<text_color/>
<text_size/>
<spacing>
<margins>
<reverse_order/>
<align>
<key>
<size/>
<border_color/>
<export_as_image>
<file/>
<target/>
<x/>
<y/>
<color/>
<alpha/>
<text_color/>
<text_size/>
<error_messages>
<enabled/>
<x/>
<y/>
<color/>
<alpha/>
<text_color/>
<text_size/>
<strings>
<no_data/>
<export_as_image/>
<collecting_data/>
<ss/>
<mm>
<hh>
<DD>
<months>
<month1>Jan</month1>
<month2>Feb</month2>
<month3>Mar</month3>
<month4>Apr</month4>
<month5>May</month5>
<month6>Jun</month6>
<month7>Jul</month7>
<month8>Aug</month8>
<month9>Sep</month9>
<month10>Oct</month10>
<month11>Nov</month11>
<month12>Dec</month12>
<context_menu>:设置点击右键时弹出的菜单
<default_items>
<zoom/>
<print/>
<label>
<label lid=”0″>:lid值必须唯一。
<x>
<y>
<rotate>:默认是[false] (true, false)
<width/>
<align>
<text_color/>
<text_size/>
<text><![CDATA[/text]]>:里面也可以设置html标签