amchart pie中文配置解析
<?xml version="1.0" encoding="UTF-8"?> <settings>? ? <group> ? <background>??????????????????????????????????????????????? <!-- BACKGROUND --> ??? <color></color>?????????????????????????????????????????? <!-- [#FFFFFF] (hex color code) Separate color codes with comas for gradient --> ??? <alpha></alpha>?????????????????????????????????????????? <!-- [0] (0 - 100) use 0 if you are using custom swf or jpg for background --> ??? <border_color>ffffff</border_color>???????????????????????????? <!-- [#000000] (hex color code) --> ??? <border_alpha>20</border_alpha>???????????????????????????? <!-- [0] (0 - 100) --> ??? <file>../../chartDemo/bg.gif</file>?????????????????????? <!-- 设置背景图片或swf文件的路径[] (filename) swf or jpg file of a background. Do not use progressive jpg file,it will be not visible with flash player 7 --> ????????????????????????????????????????????????????????????? <!-- The chart will look for this file in path folder (path is set in HTML) --> ? </background> ?? ? <balloon>?????????????????????????????????????????????????? <!-- BALLOON 块状,即当鼠标移到图像上是否显示内容--> ??? <enabled></enabled>????????????????????????????????? ?? <!-- 是否显示块状[true] (true / false) --> ??? <color>#ff00ff</color>?????????????????????????????????????????? <!-- 块状的颜色,默认为空,当为空时,将使用切片的默认颜色作为块状的背景颜色[] (hex color code) balloon background color. If empty,slightly darker then current slice color will be used --> ??? <alpha>20</alpha>???????????????????????????????????????? <!-- 块状的透明度[80] (0 - 100) --> ??? <text_color>#55ff00</text_color>???????????????????????????????? <!-- 块状中的字体颜色[#FFFFFF] (hex color code) --> ??? <text_size>13</text_size>?????????????????????????????????? <!-- 文字大小[text_size] (Number) -->???? ??? <show> ?????? <![CDATA[{title}->{percents}%]]>??????????????????????????????????????????? ??? </show>?????????????????????????????????????????????????? <!-- 显示的内容格式[{title}: {percents}% ({value}) <br>{description}] ({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. --> ??? <max_width></max_width>?????????????????????????????????? <!-- 块状的最大宽度[220] (Number) The maximum width of a balloon --> ??? <corner_radius>5</corner_radius>?????????????????????????? <!-- 块状边的半径[0] (Number) Corner radius of a balloon. If you set it > 0,the balloon will not display arrow --> ??? <border_width>5</border_width>???????????????????????????? <!-- [0] (Number) --> ??? <border_alpha></border_alpha>???????????????????????????? <!-- [balloon.alpha] (Number) --> ??? <border_color>#0000ff</border_color>???????????????????????????? <!-- [balloon.color] (hex color code) -->??? ? </balloon> ???? ? <legend>??????????????????????????????????????????????????? <!-- 图片下面的说明LEGEND --> ??? <enabled></enabled>?????????????????????????????????????? <!-- [true] (true / false) --> ??? <x></x>?????????????????????????????????????????????????? <!-- 横坐标[5%] (Number / Number% / !Number) --> ??? <y></y>?????????????????????????????????????????????????? <!-- 纵坐标[] (Number / Number% / !Number) if empty,will be placed below the pie --> ??? <width></width>?????????????????????????????????????????? <!-- 宽度[90%] (Number / Number%) --> ??? <color>#f5f5f5</color>?????????????????????????????????????????? <!-- 颜色[#FFFFFF] (hex color code) background color. Separate color codes with comas for gradient --> ??? <max_columns></max_columns>?????????????????????????????? <!-- 最大个数[] (Number) the maximum number of columns in the legend --> ??? <alpha></alpha>?????????????????????????????????????????? <!-- 透明度[0] (0 - 100) background alpha --> ??? <border_color></border_color>???????????????????????????? <!-- 边框颜色[#000000] (hex color code) border color --> ??? <border_alpha>20</border_alpha>?????????????????????????? <!-- 边框透明度[0] (0 - 100) border alpha --> ??? <text_color>#f9f22f</text_color>????????????????????????? <!--文字颜色 [text_color] (hex color code) -->??? ??? <text_size>12</text_size>???????????????????????????????? <!-- 文字大小[text_size] (Number) --> ??? <spacing>8</spacing>????????????????????????????????????? <!-- 字体和key之间的距离[10] (Number) vertical and horizontal gap between legend entries --> ??? <margins></margins>?????????????????????????????????????? <!-- [0] (Number) legend margins (space between legend border and legend entries,recommended to use only if legend border is visible or background color is different from chart area background color) --> ??? <reverse_order>true</reverse_order>?????????????????????? <!-- 是否反向的对说明进行排序[false] (true / false) whether to sort legend entries in a reverse order --> ??? <align>center</align>???????????????????????????????????? <!-- 说明的位置[left] (left / center / right) alignment of legend entries --> ??? <key>???????????????????????????????????????????????????? <!-- 说明中字体旁边的方块,称为key;KEY (the color box near every legend entry) --> ????? <size></size>?????????????????????????????????????????? <!-- [16] (Number) key size--> ????? <border_color>ffffff</border_color>?????????????????????????? <!-- [] (hex color code) leave empty if you don't want to have border --> ??? </key> ??? <values>????????????????????????????????????????????????? <!-- VALUES -->?????????? ????? <enabled>false</enabled>???????????????????????????????????? <!-- 是否将value值也显示出来[false] (true / false) whether to show values near legend entries or not --> ????? <width></width>???????????????????????????????????????? <!-- [] (Number) width of value text (use it if you want to align all values to the right,othervise leave empty) --> ????? <text><![CDATA[]]></text>?????????????????????????????? <!-- [{percents}%] ({value} {percents}) --> ???? </values>???? ? </legend>?? ?? ? <export_as_image>?????????????????????????????????????????? <!-- export_as_image feature works only on a web server --> ??? <file></file>???????????????????????????????????????????? <!-- [] (filename) if you set filename here,context menu (then user right clicks on flash movie) "Export as image" will appear. This will allow user to export chart as an image. Collected image data will be posted to this file name (use ampie/export.php or ampie/export.aspx) --> ??? <target></target>???????????????????????????????????????? <!-- [] (_blank,_top ...) target of a window in which export file must be called --> ??? <x></x>?????????????????????????????????????????????????? <!-- [0] (Number / Number% / !Number) x position of "Collecting data" text --> ??? <y></y>?????????????????????????????????????????????????? <!-- [] (Number / Number% / !Number) y position of "Collecting data" text. If not set,will be aligned to the bottom of flash movie --> ??? <color></color>?????????????????????????????????????????? <!-- [#BBBB00] (hex color code) background color of "Collecting data" text --> ??? <alpha></alpha>?????????????????????????????????????????? <!-- [0] (0 - 100) background alpha --> ??? <text_color></text_color>???????????????????????????????? <!-- [text_color] (hex color code) --> ??? <text_size></text_size>?????????????????????????????????? <!-- [text_size] (Number) --> ? </export_as_image> ?? ? <error_messages>??????????????????????????????????????????? <!-- "error_messages" settings will be applied for all error messages except the one which is showed if settings file wasn't found --> ??? <enabled></enabled>?????????????????????????????????????? <!-- [true] (true / false) --> ??? <x></x>?????????????????????????????????????????????????? <!-- [] (Number / Number% / !Number) x position of error message. If not set,will be aligned to the center --> ??? <y></y>?????????????????????????????????????????????????? <!-- [] (Number / Number% / !Number) y position of error message. If not set,will be aligned to the center --> ??? <color></color>?????????????????????????????????????????? <!-- [#BBBB00] (hex color code) background color of error message. Separate color codes with comas for gradient --> ??? <alpha></alpha>?????????????????????????????????????????? <!-- [100] (0 - 100) background alpha --> ??? <text_color></text_color>???????????????????????????????? <!-- [#FFFFFF] (hex color code) --> ??? <text_size></text_size>?????????????????????????????????? <!-- [text_size] (Number) --> ? </error_messages>???? ?? ? <strings> ??? <no_data></no_data>?????????????????????????????????????? <!-- [No data for selected period] (text) if data is missing,this message will be displayed --> ??? <export_as_image></export_as_image>?????????????????????? <!-- [Export as image] (text) text for right click menu --> ??? <collecting_data></collecting_data>?????????????????????? <!-- [Collecting data] (text) this text is displayed while exporting chart to an image --> ? </strings>?? ?? ? <context_menu>????????????????????????????????????????????? <!-- context menu allows you to controll right-click menu items. You can add custom menu items to create custom controls -->?????????????????????????????????????????????????????????????? ????????????????????????????????????????????????????????????? <!-- "function_name" specifies JavaScript function which will be called when user clicks on this menu. You can pass variables,for example: function_name="alert('something')" --> ????????????????????????????????????????????????????????????? <!-- "title" sets menu item text. Do not use for title: Show all,Zoom in,Zoom out,Print,Settings... --> ????????????????????????????????????????????????????????????? <!-- you can have any number of custom menus. Uncomment the line below to enable this menu and add apropriate JS function to your html file. --> ????? ???? <!-- <menu function_name="printChart" title="Print chart"></menu> --> ????? ???? <default_items> ?????? <zoom></zoom>????????????????????????????????????????? <!-- [false] (true / false) to show or not flash players zoom menu --> ?????? <print></print>??????????????????????????????????????? <!-- [true] (true / false) to show or not flash players print menu --> ???? </default_items> ? </context_menu>?? ?? ? <labels>??????????????????????????????????????????????????? <!-- LABELS 图像标题--> ????????????????????????????????????????????????????????????? <!-- you can add as many labels as you want --> ????????????????????????????????????????????????????????????? <!-- labels can also be added in data xml file,using exactly the same structure like it is here --> ??? <label lid="0"> ????? <x>0</x>??????????????????????????????????????????????? <!-- [0] (Number / Number% / !Number) --> ????? <y>300</y>?????????????????????????????????????????????? <!-- [0] (Number / Number% / !Number) --> ????? <rotate>true</rotate>????????????????????????????????? <!-- 是否进行旋转,false为横向显示,true为纵向显示[false] (true / false) --> ????? <width></width>???????????????????????????????????????? <!-- [] (Number / Number%) if empty,will stretch from left to right untill label fits --> ????? <align>center</align>?????????????????????????????????? <!-- [left] (left / center / right) -->?? ????? <text_color>#8f88ff</text_color>?????????????????????????????? <!-- [text_color] (hex color code) button text color --> ????? <text_size>18</text_size>?????????????????????????????? <!-- [text_size](Number) button text size --> ????? <text>????????????????????????????????????????????????? <!-- [] (text) html tags may be used (supports <b>,<i>,<u>,<font>,<a href="">,<br/>. Enter text between []: <![CDATA[your <b>bold</b> and <i>italic</i> text]]>--> ??????? <![CDATA[<b>My First Pie Chart</b>]]> ????? </text>???????? ??? </label> ? </labels> ?? ?<!-- DATA can also be set in settings file. Just place data in CSV or XML format between <data></data> --> ? ?<!--<data> ?</data> -->?? </settings> (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |