FusionCharts在Java中的基本使用

转自:http://jayyanzhang2010.iteye.com/blog/1852170

一、介绍

    FusionCharts是一个基于XML和Flash的图表组件,其中FusionCharts Free是免费的,其功能也十分强大、美观。

    在线Demo:http://www.fusioncharts.com/free/demos/Blueprint/

    其可以用在PHP、JSP、ASP等等。

 

二、常见的图表类型

1.Area图

2.Bar图

3.Column图

4.Line图

5.Pie图

6.Stacked图

7.Combine图

 

三、数据源

    其数据源形式为XML的形式,XML形式分为单序列和多序列XML,以及其他的格式。

 

四、简单使用

目录结构:

test.html

data.xml

FusionCharts

   |----------Charts

   |                |--------------- many charts *.swf

   |----------JSClass

   |                |--------------- FusionCharts.js

 

 

test.html代码:

 

[java]  view plain copy
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">  
  2. <html>  
  3. <head>  
  4. <meta http-equiv="Content-Type" content="text/html; charset=GBK">  
  5. <mce:script language="JavaScript" src="FusionCharts/JSClass/FusionCharts.js" mce_src="FusionCharts/JSClass/FusionCharts.js"></mce:script>  
  6. <title>图</title>  
  7. </head>  
  8. <body>  
  9.       
  10.     <table align='center' border="1">  
  11.         <caption>图</caption>  
  12.           
  13.             <tr>  
  14.                 <td>  
  15.                     <div id='Pie' align="center">  
  16.                         <script type="text/javascript">  
  17.                             var chart =   
  18.                             new FusionCharts('FusionCharts/Charts/FCF_Pie2D.swf', "ChartId", "400", "300");  
  19.                             chart.setDataURL("data.xml");            
  20.                             chart.render('Pie');  
  21.                           
  22. </script>  
  23.                     </div>  
  24.                 </td>  
  25.             </tr>  
  26.           
  27.     </table>  
  28. </body>  
  29. </html>  

 

 

要注意添加以下几行代码,并注意其中的路径:

(1)导入JS:  <script language="JavaScript" src='FusionCharts/JSClass/FusionCharts.js '></script>

(2)图表显示的地方:<div id='Pie' align="center">......</div>

(3)脚本:用于设置显示什么图、图的数据等

                       <script type="text/javascript">
                            var chart = 
                            new FusionCharts('FusionCharts/Charts/FCF_Pie2D.swf ', "ChartId", "400", "300");
                            chart.setDataURL("data.xml");           
                            chart.render('Pie ');
                        </script>

       其中,chart.render("Pie")中的Pie是你要显示图的div的id

 

data.xml

 

[xhtml]  view plain copy
  1. <graph baseFont='SunSim' baseFontSize='12' caption=' 分析 ' subcaption='' yAxisMinValue='51650.1' yAxisMaxValue='71118.3' xaxisname=' 日期' yaxisname='数量 ' hovercapbg='FFECAA' hovercapborder='F47E00' formatNumberScale='0' decimalPrecision='0' showvalues='1' numdivlines='10' numVdivlines='0' shownames='1' rotateNames='1'>  
  2.   <set name='2009-10-04' value='57653' color='AFD8F8'/>  
  3.   <set name='2009-10-05' value='57389' color='F6BD0F'/>  
  4.   <set name='2009-10-06' value='59256' color='8BBA00'/>  
  5.   <set name='2009-10-07' value='62762' color='FF8E46'/>  
  6.   <set name='2009-10-08' value='63287' color='008E8E'/>  
  7.   <set name='2009-10-09' value='60109' color='D64646'/>  
  8.   <set name='2009-10-10' value='64653' color='8E468E'/>  
  9.   <set name='2009-10-11' value='61687' color='588526'/>  
  10. </graph>  

 

 

显示效果如下:

FusionCharts在Java中的基本使用

也可以不用单独的文件存储xml,可以利用setDataXML方法,如下:

 

[c-sharp]  view plain copy
  1. <script type="text/javascript">  
  2.                             var chart =   
  3.                             new FusionCharts('FusionCharts/Charts/FCF_Pie2D.swf', "ChartId", "400", "300");  
  4.                             chart.setDataXML("<graph baseFont='SunSim' baseFontSize='12' caption=' 分析 ' subcaption='' yAxisMinValue='51650.1' yAxisMaxValue='71118.3' xaxisname=' 日期' yaxisname='数量 ' hovercapbg='FFECAA' hovercapborder='F47E00' formatNumberScale='0' decimalPrecision='0' showvalues='1' numdivlines='10' numVdivlines='0' shownames='1' rotateNames='1'><set name='2009-10-04' value='57653' color='AFD8F8'/><set name='2009-10-05' value='57389' color='F6BD0F'/><set name='2009-10-06' value='59256' color='8BBA00'/><set name='2009-10-07' value='62762' color='FF8E46'/><set name='2009-10-08' value='63287' color='008E8E'/><set name='2009-10-09' value='60109' color='D64646'/><set name='2009-10-10' value='64653' color='8E468E'/><set name='2009-10-11' value='61687' color='588526'/></graph>");          
  5.                             chart.render('Pie');  
  6.                           
  7. <script>  

 

 五、单序列XML形式

举例:

 

[xhtml]  view plain copy
  1. <graph baseFont='SunSim' baseFontSize='12' caption=' 分析 ' subcaption='' yAxisMinValue='51650.1' yAxisMaxValue='71118.3' xaxisname=' 日期' yaxisname='数量 ' hovercapbg='FFECAA' hovercapborder='F47E00' formatNumberScale='0' decimalPrecision='0' showvalues='1' numdivlines='10' numVdivlines='0' shownames='1' rotateNames='1'>  
  2.   <set name='2009-10-04' value='57653' color='AFD8F8'/>  
  3.   <set name='2009-10-05' value='57389' color='F6BD0F'/>  
  4.   <set name='2009-10-06' value='59256' color='8BBA00'/>  
  5.   <set name='2009-10-07' value='62762' color='FF8E46'/>  
  6.   <set name='2009-10-08' value='63287' color='008E8E'/>  
  7.   <set name='2009-10-09' value='60109' color='D64646'/>  
  8.   <set name='2009-10-10' value='64653' color='8E468E'/>  
  9.   <set name='2009-10-11' value='61687' color='588526'/>  
  10. </graph>  

 

<graph>标签的一些属性:

baseFont: 图表的字体

baseFontSize: 图表的字号

caption: 标题

subcaption: 子标题

yAxisMinValue: y轴的最小值

yAxisMaxValue: y轴的最大值

hovercapbg: 当鼠标悬停时显示的背景色

hovercapborder: 当鼠标悬停时边框色

formatNumber(0/1):是否用逗号分隔(1--用逗号分隔,0--不用)

formatNumberScale(0/1): 是否添加K、M到数字(1--添加,0--不添加)

decimalPrecision: 小数的位数

showValues(0/1): 是否显示数值

numdivlines: 水平网格线的条数

numVdivlines: 垂直网络线显示的条数

showNames(0/1): 是否显示x轴的每个数据的名称

rotateNames(0/1): 是否旋转x轴的每个数据的名称

rotateYAxisName(0/1):是否显示y轴的名称

showAlternateHGridColor(0/1): 是否显示交替的网格颜色

 

<set>标签:

name: x轴的每个数据的名称

value: 值

 

有几种图可以使用单序列的XML格式的数据

(1)Pie图

FCF_Pie2D.swf  FCF_Pie3D.swf

FusionCharts在Java中的基本使用

FusionCharts在Java中的基本使用

(2)Area图

FCF_Area2D.swf

FusionCharts在Java中的基本使用

(3)Bar图

FCF_Bar2D.swf

FusionCharts在Java中的基本使用

(4)Column图

FCF_Column2D.swf  FCF_Column3D.swf

FusionCharts在Java中的基本使用

FusionCharts在Java中的基本使用

(5)Line图

FCF_Line.swf

FusionCharts在Java中的基本使用

(6)Doughnut图

FCF_Doughnut2D.swf

FusionCharts在Java中的基本使用

 

六、多序列XML形式

举例:

 

[c-sharp]  view plain copy
  1. <graph baseFont='SunSim' baseFontSize='12' caption='分析' subcaption='' yAxisMinValue='0' yAxisMaxValue='100' xaxisname='地区  
  2. ' yaxisname='数量' hovercapbg='FFECAA' hovercapborder='F47E00' formatNumberScale='0' decimalPrecision='0' showvalues='1'   
  3. numdivlines='10' numVdivlines='0' shownames='1' rotateNames='1' >  
  4.    <categories font='Arial' fontSize='11' fontColor='000000'>  
  5.       <category name='N. America' hoverText='North America'/>  
  6.       <category name='Asia' />  
  7.       <category name='Europe' />  
  8.       <category name='Australia' />  
  9.       <category name='Africa' />  
  10.    </categories>  
  11.    <dataset seriesname='Rice' color='FDC12E' alpha='100'>  
  12.       <set value='30' />  
  13.       <set value='26' />  
  14.       <set value='29' />  
  15.       <set value='31' />  
  16.       <set value='34' />  
  17.    </dataset>  
  18.     <dataset seriesname='Wheat' color='56B9F9' showValues='1' alpha='100'>  
  19.       <set value='67' />  
  20.       <set value='98' />  
  21.       <set value='79' />  
  22.       <set value='73' />  
  23.       <set value='80' />  
  24.    </dataset>  
  25.     <dataset seriesname='Grain' color='C9198D' showValues='1' alpha='100'>  
  26.       <set value='27' />  
  27.       <set value='25' />  
  28.       <set value='28' />  
  29.       <set value='26' />  
  30.       <set value='10' />  
  31.    </dataset>  
  32. </graph>  

 

 

<graph>基本上同单序列XML形式

<categroies>指明x轴有几个种类

<categroy>对应一个种类

name:种类名

<dataset>指明一个序列集,序列集中值的个数同category的种类数

seriesname:序列的名称

<set>:序列的一个值

 

有几种图可以使用多序列的XML格式的数据

(1)Area图

FCF_MSArea2D.swf

FusionCharts在Java中的基本使用

(2)Bar图

FCF_MSBar2D.swf

FusionCharts在Java中的基本使用

(3)Column图

FCF_MSColumn2D.swf  FCF_MSColumn3D.swf

FusionCharts在Java中的基本使用

FusionCharts在Java中的基本使用

(4)Line图

FCF_MSLine.swf

FusionCharts在Java中的基本使用

(5)Stacked图

FCF_StackedArea2D.swf

FusionCharts在Java中的基本使用

FCF_StackedBar2D.swf

FusionCharts在Java中的基本使用

FCF_StackedColumn2D.swf  FCF_StackedColumn3D.swf

FusionCharts在Java中的基本使用

FusionCharts在Java中的基本使用

 

七、产生上述XML的类

[java]  view plain copy
    1. public class FusionChartsXMLGenerator {  
    2.       
    3.     public static final int BOOLEAN_TRUE = 0;  
    4.     public static final int BOOLEAN_FALSE = 1;  
    5.     private static Logger LOGGER = LoggerFactory.getLogger(FusionChartsXMLGenerator.class);   
    6.       
    7.     private static FusionChartsXMLGenerator singleton = new FusionChartsXMLGenerator();  
    8.       
    9.     public static FusionChartsXMLGenerator getInstance() {  
    10.         return singleton;  
    11.     }  
    12.       
    13.     private FusionChartsXMLGenerator() {}  
    14.       
    15.     private String[] colors = {"AFD8F8", "F6BD0F", "8BBA00", "FF8E46", "008E8E",  
    16.             "D64646", "8E468E", "588526", "B3AA00", "008ED6", "9D080D", "A186BE"};  
    17.       
    18.     /** 
    19.      * data形式为:  
    20.      * "" category1,category2,category3...-------->这是第一行  
    21.      * type1 value1,value2,value3,...  
    22.      * type2 value1,value2,value3,... 
    23.      * ...... 
    24.      */  
    25.     public String getMultiDSXML(List<List<String>> data,   
    26.             String caption, String subCaption,   
    27.             String xAxisName, String yAxisName,   
    28.             int showNames,int showValues,  
    29.             int decimalPrecision, int rotateNames) {  
    30.         double max = -Double.MAX_VALUE, min = Double.MAX_VALUE;  
    31.         for (int i = 1; i < data.size(); i++) {  
    32.             List row = (List)data.get(i);  
    33.             for (int j = 1; j < row.size(); j++) {  
    34.                 String val = (String)row.get(j);  
    35.                 if (val != null && val.length() > 0) {  
    36.                     double v = Double.parseDouble(val);  
    37.                     if (v > max) {  
    38.                         max = v;  
    39.                     }  
    40.                     if (v < min) {  
    41.                         min = v;  
    42.                     }  
    43.                 }  
    44.             }  
    45.         }  
    46.           
    47.         if (max == -Double.MAX_VALUE) {  
    48.             max = 0;  
    49.         }  
    50.           
    51.         if (min == Double.MAX_VALUE) {  
    52.             min = 0;  
    53.         }  
    54.           
    55.         if (min == max && min == 0) {  
    56.             min = 0;  
    57.             max = 100;  
    58.         }  
    59.           
    60.           
    61.         max = Math.abs(max / 10) + max;  
    62.         min = min - Math.abs(min / 10);  
    63.           
    64.         int valCnt = ((List)data.get(0)).size() - 1;  
    65.         if (valCnt > 30) {  
    66.             showNames = 0;  
    67.             showValues = 0;  
    68.         }  
    69.           
    70.         StringBuffer strXml = new StringBuffer();  
    71.         strXml.append("<graph baseFont='SunSim' baseFontSize='12' caption='" +   
    72.                 caption +"' subcaption='" + subCaption + "' " +  
    73.                 "yAxisMinValue='" + min + "' yAxisMaxValue='" + max + "' " +  
    74.                 "xAxisName='" + xAxisName + "' yAxisName='" + yAxisName + "' hovercapbg='FFECAA' " +  
    75.                 "hovercapborder='F47E00' formatNumberScale='0' decimalPrecision='" + decimalPrecision + "' " +  
    76.                 "showValues='" + showValues + "' numdivlines='10' numVdivlines='0' " +  
    77.                 "showNames='" + showNames + "' rotateNames='" + rotateNames + "' " +  
    78.                 "rotateYAxisName='0' showAlternateHGridColor='1'>");  
    79.       
    80.         strXml.append("<categories>");  
    81.         List headerRow = (List)data.get(0);  
    82.         for (int i = 1; i < headerRow.size(); i++) {  
    83.             strXml.append("<category name='" + headerRow.get(i) + "'/>");  
    84.         }  
    85.         strXml.append("</categories>");  
    86.           
    87.         for (int i = 1; i < data.size(); i++) {  
    88.             List row = (List)data.get(i);  
    89.             String name = (String)row.get(0);  
    90.             String color = colors[(i - 1) % 12];  
    91.             strXml.append("<dataset seriesName='" + name +"' " +  
    92.                     "color='" + color + "' anchorBorderColor='" + color + "' " +  
    93.                     "anchorBgColor='" + color + "'>");  
    94.             for (int j = 1; j < row.size(); j++) {  
    95.                 strXml.append("<set value='" + (String)row.get(j) +"'/>");  
    96.             }  
    97.             strXml.append("</dataset>");  
    98.         }  
    99.           
    100.         strXml.append("</graph>");  
    101.         String str =  strXml.toString();  
    102.         LOGGER.info("=============/n" + str + "/n==============/n");  
    103.         return str;  
    104.     }  
    105.       
    106.     /** 
    107.      *  数据格式为: 
    108.      *  name value  
    109.      *  name value 
    110.      *  ...... 
    111.      */  
    112.     public String getSingleDSXML(List<List<String>> data,   
    113.             String caption, String subCaption,   
    114.             String xAxisName, String yAxisName,   
    115.             int showNames,int showValues,  
    116.             int decimalPrecision, int rotateNames) {  
    117.           
    118.         double max = -Double.MAX_VALUE, min = Double.MAX_VALUE;  
    119.         for (int i = 0; i < data.size(); i++) {  
    120.             List<String> row = data.get(i);  
    121.             double value = Double.parseDouble(row.get(1));  
    122.             if (value > max) {  
    123.                 max = value;  
    124.             }  
    125.             if (value < min) {  
    126.                 min = value;  
    127.             }  
    128.         }  
    129.           
    130.         if (max == -Double.MAX_VALUE) {  
    131.             max = 0;  
    132.         }  
    133.           
    134.         if (min == Double.MAX_VALUE) {  
    135.             min = 0;  
    136.         }  
    137.           
    138.         if (min == max && min == 0) {  
    139.             min = 0;  
    140.             max = 100;  
    141.         }  
    142.           
    143.           
    144.         max = Math.abs(max / 10) + max;  
    145.         min = min - Math.abs(min / 10);  
    146.           
    147.         int valCnt = data.size() - 1;  
    148.         if (valCnt > 30) {  
    149.             showNames = 0;  
    150.             showValues = 0;  
    151.         }  
    152.           
    153.         StringBuffer strXml = new StringBuffer();  
    154.         strXml.append("<graph baseFont='SunSim' baseFontSize='12' caption='" +   
    155.                 caption +"' subcaption='" + subCaption + "' " +  
    156.                 "yAxisMinValue='" + min + "' yAxisMaxValue='" + max + "' " +  
    157.                 "xAxisName='" + xAxisName + "' yAxisName='" + yAxisName + "' hovercapbg='FFECAA' " +  
    158.                 "hovercapborder='F47E00' formatNumberScale='0' decimalPrecision='" + decimalPrecision + "' " +  
    159.                 "showValues='" + showValues + "' numdivlines='10' numVdivlines='0' " +  
    160.                 "showNames='" + showNames + "' rotateNames='" + rotateNames + "' " +  
    161.                 "rotateYAxisName='0' showAlternateHGridColor='1'>");  
    162.         for (int i = 0; i < data.size(); i++) {  
    163.             List<String> row = data.get(i);  
    164.             String label = row.get(0);  
    165.             String value = row.get(1);  
    166.             String color = colors[i % 12];  
    167.             strXml.append("<set name='" + label + "' value='" + value + "' color='" + color + "'/>");  
    168.               
    169.         }  
    170.         strXml.append("</graph>");  
    171.         String str =  strXml.toString();  
    172.         LOGGER.info("=============/n" + str + "/n==============/n");  
    173.         return str;  
    174.     }  
    175. }  

 

八、其他图

(1)漏斗图

FCF_Funnel.swf

XML:

===================================

<graph numberPrefix='$'>
     <set name='Jan' value='17400' color='0099FF' />
     <set name='Feb' value='19800' color='FF66CC' />
     <set name='Mar' value='21800' color='996600' />
     <set name='Apr' value='23800' color='669966' />
     <set name='May' value='29600' color='7C7CB4' />
     <set name='Jun' value='27600' color='FF9933' />
     <set name='Jul' value='31800' color='CCCC00' />
     <set name='Aug' value='39700' color='9900FF' />
     <set name='Sep' value='37800' color='999999' />
     <set name='Oct' value='21900' color='99FFCC' />
     <set name='Nov' value='32900' color='CCCCFF' />
     <set name='Dec' value='39800' color='669900' />
</graph>

===================================

 FusionCharts在Java中的基本使用

 

(2)线柱组合图

FCF_MSColumn2DLineDY.swf    FCF_MSColumn3DLineDY.swf

XML:

===================================

<graph PYAxisName='Amount' SYAxisName='Quantity' shownames='1' showvalues='0' showLegend='1' rotateNames='0' formatNumberScale='1' decimalPrecision='2' limitsDecimalPrecision='2' divLineDecimalPrecision='3' formatNumber='1' >
   <categories>
      <category name='Ernst...' hoverText='Ernst Handel'/>
      <category name='QUICK...' hoverText='QUICK-Stop'/>
      <category name='Save-...' hoverText='Save-a-lot Markets'/>
      <category name='Hanar...' hoverText='Hanari Carnes'/>
   </categories>
    <dataset seriesname='Amount' showValues='1' color='AFD8F8' parentYAxis='P' numberPrefix='$'>
      <set value='41210.65' />
      <set value='37217.32' />
      <set value='36310.11' />
      <set value='23821.2' />
   </dataset>
    <dataset seriesname='Discount' showValues='0' color='FDC12E' parentYAxis='P' numberPrefix='$'>
      <set value='1202.27254486084' />
      <set value='2736.60256195068' />
      <set value='5047.74497413635' />
      <set value='337.672510147095' />
   </dataset>
   <dataset seriesname='Quantity' showValues='0' color='FF8000' anchorBorderColor='FF8000' parentYAxis='S' lineThickness='9'>
      <set value='1756' />
      <set value='1096' />
      <set value='1817' />
      <set value='478' />
   </dataset>
</graph>

========================================

 FusionCharts在Java中的基本使用

FusionCharts在Java中的基本使用

 

(3)K线图

FCF_Candlestick.swf

XML:

========================================

<graph caption='3 Months - As on 04/02/04' yAxisMinValue='24' yAxisMaxValue='29' canvasBorderColor='DAE1E8' canvasBgColor='FFFFFF' bgColor='EEF2FB' numDivLines='9' divLineColor='DAE1E8' decimalPrecision='2' numberPrefix='$' showNames='1' bearBorderColor='E33C3C' bearFillColor='FFFF00' bullBorderColor='1F3165' baseFontColor='444C60' hoverCapBorderColor='DAE1E8' hoverCapBgColor='FFFFFF' rotateNames='0'>
<categories font='' fontSize='10' fontColor='' verticalLineColor='' verticalLineThickness='2'>
<category Name='2004' xIndex='1' showLine='0'/>
<category Name='Feb' xIndex='31' showLine='1'/>
<category Name='March' xIndex='59' showLine='1'/>
</categories>
<data>
<set open='24.6' high='25.24' low='24.58' close='25.19' />
<set open='24.36' high='24.58' low='24.18' close='24.41' />
<set open='24.63' high='24.66' low='24.11' close='24.15' />
<set open='24.53' high='24.84' low='24.01' close='24.5' />
<set open='24.84' high='24.94' low='24.56' close='24.63' />
<set open='24.96' high='25.03' low='24.58' close='24.89' />
<set open='25.25' high='25.46' low='25.11' close='25.13' />
<set open='25.27' high='25.37' low='25.0999' close='25.18' />
<set open='25.33' high='25.43' low='25.06' close='25.16' />
<set open='25.38' high='25.51' low='25.23' close='25.38' />
<set open='25.2' high='25.78' low='25.07' close='25.09' />
<set open='25.66' high='25.8' low='25.35' close='25.37' />
<set open='25.77' high='25.97' low='25.54' close='25.72' />
<set open='26.31' high='26.35' low='25.81' close='25.83' />
<set open='26.23' high='26.6' low='26.2' close='26.35' />
<set open='26.37' high='26.42' low='26.21' close='26.37' />
<set open='26.35' high='26.55' low='26.22' close='26.37' />
<set open='26.63' high='26.69' low='26.35' close='26.39' />
<set open='26.65' high='26.72' low='26.5' close='26.7' />
<set open='26.48' high='26.62' low='26.35' close='26.53' />
<set open='26.63' high='26.65' low='26.41' close='26.5' />
<set open='26.89' high='26.99' low='26.61' close='26.7' />
<set open='26.6' high='26.95' low='26.55' close='26.88' />
<set open='26.75' high='26.76' low='26.4799' close='26.61' />
<set open='26.65' high='26.795' low='26.5' close='26.57' />
<set open='26.9' high='26.98' low='26.43' close='26.46' />
<set open='26.92' high='27.11' low='26.74' close='26.77' />
<set open='26.7' high='27.1' low='26.59' close='26.99' />
<set open='26.98' high='27.06' low='26.5' close='26.59' />
<set open='27.09' high='27.15' low='26.93' close='26.95' />
<set open='26.95' high='27.23' low='26.85' close='27.15' />
<set open='26.86' high='27.15' low='26.82' close='27.02' />
<set open='27.18' high='27.229' low='26.85' close='26.9' />
<set open='27' high='27.19' low='26.93' close='27.08' />
<set open='27.06' high='27.17' low='26.83' close='26.96' />
<set open='27.15' high='27.43' low='27.01' close='27.01' />
<set open='27.42' high='27.55' low='27.18' close='27.29' />
<set open='27.63' high='27.8' low='27.24' close='27.4' />
<set open='27.85' high='27.9' low='27.55' close='27.65' />
<set open='27.78' high='27.95' low='27.57' close='27.91' />
<set open='28.28' high='28.44' low='27.47' close='27.71' />
<set open='28.6' high='28.72' low='28.22' close='28.25' />
<set open='28.49' high='28.83' low='28.32' close='28.8' />
<set open='28.27' high='28.76' low='28.22' close='28.48' />
<set open='28.37' high='28.44' low='27.94' close='28.01' />
<set open='28.13' high='28.3' low='27.85' close='28.3' />
<set open='27.99' high='28.2' low='27.93' close='28.1' />
<set open='27.74' high='27.88' low='27.53' close='27.81' />
<set open='27.55' high='27.72' low='27.42' close='27.54' />
<set open='27.51' high='27.73' low='27.47' close='27.7' />
<set open='27.54' high='27.64' low='27.26' close='27.43' />
<set open='27.67' high='27.73' low='27.35' close='27.57' />
<set open='28.03' high='28.061' low='27.59' close='27.66' />
<set open='28.39' high='28.48' low='28' close='28.16' />
<set open='28.17' high='28.31' low='28.01' close='28.21' />
<set open='28.19' high='28.28' low='28.07' close='28.24' />
<set open='27.73' high='28.18' low='27.72' close='28.14' />
<set open='27.58' high='27.77' low='27.33' close='27.45' />
<set open='27.42' high='27.55' low='27.23' close='27.37' />
<set open='27.41' high='27.55' low='27.4' close='27.52' />
<set open='27.21' high='27.53' low='27.16' close='27.46' />
<set open='27.05' high='27.25' low='27' close='27.21' />
</data>
</graph>

================================================

 FusionCharts在Java中的基本使用

你可能感兴趣的:(FusionCharts)