Java (Jfreechart) Implementation of a variety of data statistics (column chart, pie chart, line chart) "Original address: http://blog.csdn.net/pzhtpf/article/details/7600100"
Recently in the course of data mining design, need to analyze the results of the data is very intuitive to the user, this will need to use the d
Click to accumulate [JS] --- JQuery to implement bar chart, which is applicable to multiple choice questions and other statistics. jquery bar chart
Effect:
Idea: front-end JS achieves Dynamic Data effects, and the backend can splice strings or load data with JSON
Code:
Download Demo:
Http://files.cnblogs.com/files/xinchun/tongjitu.zip
First:
Pie chart:
Bar chart:
Find information on the Internet, sort it out, and comment out the configurationCodeAs follows:
1. All the code for creating a pie chart
///
/// Obtain the slice chart based on the four-Rate
///
///
///
///
///
///
///
Public bitmap getbitmap (
First of all, cut a picture to see the effect:Initialize StateThe state after magnificationClick on the status after selectionAs shown, the general statistics related to the map are related to the three states shown above: 1, the initialization state, 2, the state after zooming, 3, click to select Show Details status. In the first state, load the chart, generally speaking, the
Recently, in doing data analysis related work, the results of data analysis need to be visually displayed for fine-tuning. Here you need to use column chart, pie chart, line chart and so on, Java has Jfreechart library to achieve data statistics, Jfreechart official website: http://www.jfree.org/jfreechart/.
One jar c
);
Timeseries1.add (New Month (6, 2002), 108.8D);
Timeseries1.add (New Month (7, 2002), 101.59999999999999D);
Timeseriescollection timeseriescollection = new Timeseriescollection ();
Timeseriescollection.addseries (timeseries); Timeseriescollection.addserieS (timeseries1);
return timeseriescollection;
Public Chartpanel Getchartpanel () {return frame1; }
}
The effect chart is as follows:
Take another look a
Android Statistics Chart MpandroidchartMpandroidchart is an open source third-party statistical Chart library on the Android platform that can draw a variety of complex and rich statistical charts, such as common line charts, pie charts, histogram, scatter charts, candle charts used in financial stocks, bubble chart
: ' Contact phone ', dataindex: ' Hometel ', Hidden:true, sortable:false},107{text: ' Regulatory body ', Dataindex: ' Mngorgname ', Hidden:true, sortable:false}108 ],109Bbar:NewExt.pagingtoolbar ({ the Store:gridstore,111DisplayInfo:true, theShowueritemsbeforedisplayinfo:true,113Displaymsg: "{0}-{1} bar total {2}", theEmptymsg: "No records are eligible" the }) the });117 }118 119 //Show Statistics List window - functionShowWindow (
Label:Say in frontTo do a data statistics and analysis of the project, face a variety of data every day, after the storage process from the source table after the summary of the need to write intermediate results table to improve the efficiency of data use, then you need to use row to column and column change. 1. List of career changeAfter the data is processed, the data source of the front-end chart will b
1. First reference the JS File
When referencing the above file, make sure that the jquery. js file has been referenced. And the location is before the above two files.
2.
1
3. JSON data method
// Chart statistics public actionresult jsonsignlist (INT op, string date) {jsondata ret = new jsondata (); netsignrepository rep = new netsignrepository (); try {If (OP = 1) {ret. content = rep. countnetsign (OP,
Requirements: A directory contains multiple TXT files, each TXT file saves one data per line, according to the data of each TXT file to generate a line chart, the y-axis of each row of data, the X-axis represents the first few lines.
A. Download the dependent Jar package first: Jfreechart-1.0.17.jar,jcommon-1.0.21.jar.
B. When you create a new Java project, you rely on the 2 jar packages.
C. Related Jfreechart Introduction:
Org.jfree.chart.ChartFacto
Asp.net| Statistics | charts
Previous time project needs, wrote a simple icon statistics class. Decide to write something to blog later.
Using System;Using System.Drawing;Using System.Drawing.Imaging;Using System.Drawing.Drawing2D;Namespace Crystalreportsdemo... {/**////CreateReport draw a graphical report-column chart.public class CreateReport... {Public CreateReport ()... {//TODO: Add constructor logic he
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.