Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

javaÖÐÈçºÎʹÓÃamcharts


×î½ü¹«Ë¾Åöµ½ÐèÒªÓÃͼ±íµÄÐÎʽÏÔʾһЩÊý¾Ý£¬ÎҾͿªÊ¼µ½ÍøÉϲéѯ£¬²éµ½ÁËjfreechartºÍamcharts,ÕâÁ½ÕßÎÒ¶¼ÊµÏÖ¹ýÁË£¬jfreechart×îºóÉú³ÉͼƬ£¬µ«ÊÇͼƬЧ¹û²»ÊÇÎÒÏëÒªµÄ£¬È»ºóÓÖÑо¿amcharts ËüµÄЧ¹ûȷʵºÜºÃ£¬¶øÇÒ¹Ù·½ÍøÕ¾ÉÏ»¹ÓкÃЩÀý×ӿɹ©ÏÂÔØ£¬ÍøÖ·ÊÇ:www.amcharts.com
£¨ÏëÒªÍê³ÉÒ»¸öamchartsͼÐÎÐèÒªswfobjects.js£¬»¹ÓÐÅäÖÃÎļþ£¬Ò»¸öÊÇÅäÖýçÃæͼÐÎÈçºÎÏÔʾµÄÎļþ,Ò»¸öÊÇÅäÖÃÊý¾ÝµÄÎļþ¡£»¹ÓÐÒ»¸öÐèÒªÉú³ÉµÄ.swf,×îºóÔÚhtmlÀïÏÔʾͼÐΡ££©ÕâЩ¶¼¿ÉÒÔµ½¹Ù·½ÍøÕ¾ÉÏÕÒµ½£¬¶øÇÒÓɾßÌåµÄ˵Ã÷¡£¹Ø¼üÊÇËûµÄÊý¾ÝÅäÖÃÊÇÒªxml ºÍcsv¸ñʽµÄ£¬ÎÒÔõÑù²ÅÄÜ°ÑÈ¡µÃµÄÊý¾Ý·Åµ½ÕâÑùµÄ¸ñʽÀÎÒÊÔ¹ýÈ¡³öÀ´Êý¾Ý°ÑËüת»»³Éxml¸ñʽ£¬µ«ÊÇÓÃJavaÓïÑÔת»»Ì«Âé·³¶øÇÒÎÒת»»Á˺þö¼Ã»Óгɹ¦£¬Å¼¶û¿´µ½ÁËÒ»¸öÍøÒ³ÊÇjspת»»³Éxml¡£ÕâÒ»ÏÂ×ÓÌáÐÑÁËÎÒ£¬ºÎ±ØÈç´Ë·Ñ¾¢ÄØ£¬ÎÒͨ¹ýssh ¼Ü¹¹µÃµ½ÁËÐèÒªµÄÊý¾Ý£¬ÒÔÏÂÊÇÎÒת»»³ÉxmlµÄjspÒ³Ã棺
<%@ page language="java" import="java.util.*"%>
<%@ page contentType="text/xml; charset=utf-8"%>
<jsp:directive.page import="org.web.entity.Stack"/>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<?xml version="1.0" encoding="UTF-8"?>
<chart>
<axes>
<%
    List<Stack> list=(List<Stack>)request.getSession().getAttribute("list");
     for(int i=0;i<list.size();i++)
     {
        Stack s=list.get(i);
   %>
   <axis xid="<%=i%>"><%=s.getAxis()%></axis>
   <%
    }
   %>
</axes>
<graphs>
     <graph gid="1">
    <%
     for(int n=0;n<list.size();n++)
     {
        Stack ss=list.get(n);
      %>
 
  <value xid="<%=n%>"><%=ss.getShuju()%></value>
  


Ïà¹ØÎĵµ£º

JavaÖм¯ºÏÈÝÆ÷ÀàListºÍSetµÄÓ÷¨

ListµÄÓ÷¨
List°üÀ¨List½Ó¿ÚÒÔ¼°List½Ó¿ÚµÄËùÓÐʵÏÖÀà¡£ÒòΪList½Ó¿ÚʵÏÖÁËCollection½Ó¿Ú£¬ËùÒÔList½Ó¿ÚÓµÓÐCollection½Ó¿ÚÌṩµÄËùÓг£Ó÷½·¨£¬ÓÖÒòΪListÊÇÁбíÀàÐÍ£¬ËùÒÔList½Ó¿Ú»¹ÌṩÁËһЩÊʺÏÓÚ×ÔÉíµÄ³£Ó÷½·¨£¬Èç±í1Ëùʾ¡£
±í1  List½Ó¿Ú¶¨ÒåµÄ³£Ó÷½·¨¼°¹¦ÄÜ
´Ó±í1¿ÉÒÔ¿´³ö£¬List½Ó¿ÚÌṩµÄÊʺÏÓÚ×ÔÉíµÄ ......

Java½â»ó2 21ÎÒµÄÀàÊÇʲôII

ÏÂÃæµÄ³ÌÐòËùÒª×öµÄÊÂÇéÕýÊÇÇ°Ò»¸öÃÕÌâËù×öµÄÊÂÇ飬µ«ÊÇËüûÓмÙÉèб¸Ü·ûºÅ¾ÍÊÇ·Ö¸ôÎļþÃû×é³É²¿·ÖµÄ·ûºÅ¡£Ïà·´£¬¸Ã³ÌÐòʹÓõÄÊÇjava.io.File.separator£¬Ëü±»Ö¸¶¨ÎªÒ»¸ö¹«¹²µÄStringÓò£¬°üº¬ÁËƽ̨Ïà¹ØµÄÎļþÃû·Ö¸ô·û¡£ÄÇô£¬Õâ¸ö³ÌÐò»á´òÓ¡³öÆäÕýÈ·µÄ¡¢Æ½Ì¨Ïà¹ØµÄÀàÎļþÃûÂð£¿
package com.javapuzzlers;
import java. ......

Java½â»ó2 22URLÒÉ»ó

±¾ÃÕÌâÀûÓÃÁËJava±à³ÌÓïÑÔÖÐÒ»¸öºÜÉÙ±»ÈËÁ˽âµÄÌØÐÔ¡£Ç뿼ÂÇÏÂÃæµÄ³ÌÐò½«»á×öЩʲô£¿
public class BrowserTest {
public static void main(String[] args) {
System.out.print("iexplore:");
http://www.google.com;
System.out.println(":maximize");
}
}
ÕâÊÇÒ»¸öÓеã¹îÒìµÄÎ ......

Java½â»ó2 27±ä»ÃĪ²âµÄIÖµ

ÓëÃÕÌâ26ÖеijÌÐòÒ»Ñù£¬ÏÂÃæµÄ³ÌÐòÒ²°üº¬ÁËÒ»¸ö¼Ç¼ÔÚÖÕֹǰÓжàÉٴεü´úµÄÑ­»·¡£ÓëÄǸö³ÌÐò²»Í¬µÄÊÇ£¬Õâ¸ö³ÌÐòʹÓõÄÊÇ×óÒƲÙ×÷·û£¨<<£©¡£ÄãµÄÈÎÎñÕÕ¾ÉÊÇÒªÖ¸³öÕâ¸ö³ÌÐò½«´òӡʲô¡£µ±ÄãÔĶÁÕâ¸ö³ÌÐòʱ£¬Çë¼Çס Java ʹÓõÄÊÇ»ùÓÚ2µÄ²¹ÂëµÄ¶þ½øÖÆËãÊõÔËË㣬Òò´Ë-1ÔÚÈκÎÓзûºÅµÄÕûÊýÀàÐÍÖУ¨byte¡¢short¡¢int»òlong£ ......

Java½â»ó2 28Ñ­»·Õß

ÏÂÃæµÄÃÕÌâÒÔ¼°ËæºóµÄÎå¸öÃÕÌâ¶ÔÄãÀ´ËµÊÇŤתÁ˾ÖÃ棬ËüÃDz»ÊÇÏòÄãչʾijЩ´úÂ룬ȻºóѯÎÊÄãÕâЩ´úÂ뽫×öЩʲô£¬ËüÃÇÒªÈÃÄãȥд´úÂ룬µ«ÊÇÊýÁ¿»áºÜÉÙ¡£ÕâЩÃÕÌâ±»³ÆΪ“Ñ­»·Õߣ¨looper£©”¡£ÄãÑÛÇ°»áչʾ³öÒ»¸öÑ­»·£¬Ëü¿´ÆðÀ´Ó¦¸ÃºÜ¿ì¾ÍÖÕÖ¹µÄ£¬¶øÄãµÄÈÎÎñ¾ÍÊÇдһ¸ö±äÁ¿ÉùÃ÷£¬ÔÚ½«Ëü×÷ÓÃÓÚ¸ÃÑ­»·Ö®ÉÏʱ£¬Ê¹µÃ¸Ã ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ