现在的位置: 首页 > 综合 > 正文

Amcharts–Chart with scroller

2013年11月24日 ⁄ 综合 ⁄ 共 2333字 ⁄ 字号 评论关闭

Chart with scroller

官网事例:http://www.amcharts.com/line/chart-with-scroller/

amcharts可以用来做成漂亮的flash报表,jfreecharts能做的图基本上它都可以做出来.

下面主要是对amline_settings.xml这个文件的一些属性进行说明:

<?xml version="1.0" encoding="UTF-8"?>
<!-- Value between [] brackets, for example [#FFFFFF] shows default value which is used if this parameter is not set -->
<!-- This means, that if you are happy with this value, you can delete this line at all and reduce file size -->
<!-- value or explanation between () brackets shows the range or type of values you should use for this parameter -->
<!-- the top left corner has coordinates x = 0, y = 0     -->
<!-- "!" before x or y position (for example: <x>!20</x>) means that the coordinate will be calculated from the right side or the bottom -->

<!-- 值在[]中, 例如 [#FFFFFF] 如果[]中没有设置参数,则为默认值 -->
<!-- 如果你乐意,你可以删除注释来减少文件尺寸 -->
<!-- ()的值用来描述范围或类型,例如(0-100) or (Integer,String)    -->
<!-- 左上角坐标是 x = 0, y = 0  -->

<settings>

  <skip_rows></skip_rows>跳过前多少行,默认0

  <decimals_separator>,</decimals_separator>小数点分割符

  <digits_after_decimal>2</digits_after_decimal>精确度

  <reload_data_interval></reload_data_interval>动态加载数据间隔时间

  <start_on_axis></start_on_axis>起始从原点开始

<hide_bullets_count>20</hide_bullets_count>                大于20就不显示曲线标志

<!-- [] (Number) if there are more then hideBulletsCount points on the screen, bullets can be hidden, to avoid mess. Leave empty, or 0 to show bullets all the time. This rule doesn't influence if custom bullet is defined near y value, in data file -->

  <background>

     <alpha></alpha>透明度

  </background> 

  <plot_area>绘图的区域

   ......

  </plot_area>

   <scroller>放大之后,出现的滚动条

   ......

   </scroller>

   <grid>网格

      <x>

        ....

        <approx_count>10</approx_count>x轴的网格线(近似值)

     </x>

     <y_left>

       ....

     </y_left>

   <grid>

   <values>x与y轴上的值

   ......

   </values>

   <axes>坐标轴

   ......

   </axes>

   <indicator>指示器,鼠标跟踪显示

   ....

   </indicator>

   <balloon>像气球一样跟踪鼠标显示坐标值

   </balloon>

   <legend>图例说明

   ....

   <text_color_hover>#000000</text_color_hover> 鼠标悬停在上面的颜色

   </legend>

   <zoom_out_button> 放大之后,还原按扭的位置

   </zoom_out_button>

   <help>

   </help>

   <labels>文字标签

   </labels>

   <graphs>图表显示,根据提供的数据文件显示

       <graph>

          <bullet>round</bullet> 以实心圆圈表示坐标点(还可用其它如:square正文形....)

          .......

          <vertical_lines></vertical_lines>坐标点是否用线连接起来

          <line_alpha>100</line_alpha> 
                              曲线的透明度,为0曲线不显示 <!-- [100] (0 - 100) -->

          <balloon_text> 跟踪显示的气球里的值
              <![CDATA[<b>${value}</b>]]>$是修饰符                                
           </balloon_text>

       </graph>

   </graphs>

</settings>

 

抱歉!评论已关闭.