ÀûÓÃJFreeChartÉú³É¼òµ¥Öù״ͼ(Java)
package barchartdemo1;
import java.awt.Font;
import java.io.FileOutputStream;
import java.io.IOException;
import org.jfree.chart.ChartFactory;
import org.jfree.chart.ChartUtilities;
import org.jfree.chart.JFreeChart;
import org.jfree.chart.axis.CategoryAxis;
import org.jfree.chart.axis.NumberAxis;
import org.jfree.chart.plot.CategoryPlot;
import org.jfree.chart.plot.PlotOrientation;
import org.jfree.data.category.CategoryDataset;
import org.jfree.data.category.DefaultCategoryDataset;
/**
*
* @author Administrator
*/
public class Main {
/**
* @param args the command line arguments
*/
public static void main(String[] args) throws IOException {
CategoryDataset ds = getDataSet();
JFreeChart chart = ChartFactory.createBarChart3D(
"Ë®¹û²úÁ¿Í¼", //ͼ±í±êÌâ
"Ë®¹û", //Ŀ¼ÖáµÄÏÔʾ±êÇ©
"²úÁ¿", //ÊýÖµÖáµÄÏÔʾ±êÇ©
ds, //Êý¾Ý¼¯
PlotOrientation.VERTICAL, //ͼ±í·½Ïò
true, //ÊÇ·ñÏÔʾͼÀý£¬¶ÔÓÚ¼òµ¥µÄÖù״ͼ±ØÐëΪfalse
false, //ÊÇ·ñÉú³ÉÌáʾ¹¤¾ß
false); //ÊÇ·ñÉú³ÉurlÁ´½Ó
CategoryPlot categoryplot = (CategoryPlot) chart.getPlot();
NumberAxis numberaxis = (NumberAxis) categoryplot.getRangeAxis();
CategoryAxis domainAxis = categoryplot.getDomainAxis();
/*------ÉèÖÃXÖá×ø±êÉϵÄÎÄ×Ö-----------*/
domainAxis.setTickLabelFont(new Font("sans-serif", Font.PLAIN, 11));
/*------ÉèÖÃXÖáµÄ±êÌâÎÄ×Ö------------*/
domainAxis.setLabelFont(new Font("ËÎÌå", Font.PLAIN, 12));
/*------ÉèÖÃYÖá×ø±êÉϵÄÎÄ×Ö-----------*/
numberaxis.setTickLabelFont(new Font("sans-serif", Font.PLAIN, 12));
/*------ÉèÖÃYÖáµÄ±êÌâÎÄ×Ö------------*/
numberaxis.setLabelFont(new Font("ºÚÌå", Font.PLAIN, 12));
/*------Õâ¾ä´úÂë½â¾öÁ˵ײ¿ºº×ÖÂÒÂëµÄÎÊÌâ-----------*/
chart.getLegend().setItemFont(new Font("ËÎÌå", Font.PLAIN,
Ïà¹ØÎĵµ£º
×î³õÎÒÃÇÓà Java д JSP µÄʱºò£¬¼¸ºõ¿ÉÒÔ²»´¥¼°Òì³££¬ÒòΪ Servlet ÈÝÆ÷»á°Ñ API Å׳öµÄÒì³£°ü×°³É
ServletException ¶ª¸øÈÝÆ÷È¥´¦Àí¡£ÔÙºóÀ´Ó¦Ó÷ֲ㣬´úÂëÖÐÒª´¦ÀíµÄÒì³£±ã¶àÁË£¬Ò»°ã»áת»»³É×Ô¶¨ÒåµÄÒµÎñÒì³£À࣬ÓÃ
try-catch-throw
customerException-finally¡£ÔÙµ½Èç½ñ¸÷ÖÖ¿ò¼ÜÈÕÕé³ÉÊ죬´úÂëÖÐÏÔʽµÄÒì³£´¦ÀíÓÖ½¥ ......
µÚÒ»£º
1.StringÊÇ×î»ù±¾µÄÊý¾ÝÀàÐÍô£¿
´ð£º²»ÊÇ¡£»ù±¾µÄÊý¾ÝÀàÐÍ°üÀ¨£ºbyte,int,char,long,float,double,booleanºÍshort.
java.lang.StringÀàÊÇfinalÀàÐ͵ģ¬Òò´Ë²»¿ÉÒԼ̳ÐÕâ¸öÀ࣬²»ÄÜÐÞ¸ÄÕâ¸öÀà¡£
2.¾²Ì¬±äÁ¿ºÍʵÀý±äÁ¿µÄÇø±ð£¿
´ð£ºstatic i = 10 ;//³£Á¿
&nb ......
Ò»°ãµÄÊÊÓÃÓÚS40µÄJAVAÈí¼þ¶¼¿ÉÒÔ×°ÔÚŵ»ùÑÇ3110cÉÏ,°üÀ¨ÓÎÏ·,µç×ÓÊé,Ó¦ÓÃÈí¼þ ʲôÊÇJAVAÈí¼þÄØ£¿
JavaÊÇÓÉSun΢ϵͳ¹«Ë¾Ëù·¢Õ¹³öÀ´µÄ³ÌÐòÓïÑÔ£¬Ëü±¾ÉíÊÇÒ»ÖÖ¶ÔÏóµ¼Ïò£¨Object-Oriented£©µÄ³ÌÐòÓïÑÔ¡£JAVAÄ¿Ç°ÔÚÊÖ»úÉÏÓ¦ÓÃ×î¶àµÄ¾ÍÊÇJAVAÓÎÏ·¡£
JavaÒ²ºÅ³ÆÊÇÄÜ¿çƽ̨ʹÓõÄÓïÑÔ£¬ÕâÖ÷ÒªÊÇÒòΪJava±¾Éí±»±àÒëÖ®ºó£¬²¢² ......
ÔÚJavaÖÐÈç¹ûList ½áºÏ´æÈ¡µÄÊÇÐí¶àÀàÐͲ»Í¬µÄÊý¾ÝÈçint,String ÀàÐͶ¼ÓУ¬ÄÇôÈçºÎʹÓÃJSTL±í´ïʽѻ·»ñÈ¡List¼¯ºÏÖеÄÔªËØÄØ£¿
È磺¼ÙÈçList list=new ArrayList(); int a=1; String b="sss"; String c="ddddddd";……ÔÚServletÖРʹÓÃSession ±£´æ
session.set ......