class mainclass {public static void main (string ARGs []) {jframe frame = new jframe ("Java data statistics graph"); frame. setlayout (New gridlayout (2, 2, 10, 10); frame. add (New barchart (). getchartpanel (); // Add a bar comment frame. add (New barchart1 (). getchartpanel (); // Add another effect frame of the bar chart. add (New piechart (). getchartpanel (); // Add a pie chart frame. add (New timeserieschart (). getchartpanel (); // Add a line chart frame. setbounds (50, 50,800,600); fra
Today, I saw how to draw charts using python. There is a powerful class library matplotlib that can produce high-quality 2D and 3D images. Record them first, and then learn it slowly.
Matplotlib download and API manual address: http://sourceforge.net/projects/matplotlib/files/matplotlib/
Mathematical library numpy download and API manual address: http://www.scipy.org/Download
Several drawing examples are from the API manual:
1. Simplest diagram:
Code:
To use the fusioncharts chart, you need to prepare three files in swf format (taking creating a 3D bar chart as an example. This file is the SWF where you want to display the chart. Each SWF file has a style, such as a pie chart and a bar chart. We want to create a 3 D column chart, so we can first prepare column3d.swf. All SWF files are stored in download
Package> charts folder 2) XML file. Fusioncharts free can only read data from XML files. So you
Commonly used Android effects (various progress bars, cool loading animations, rocket launching, sprinkling, and trend charts), androidloading
I have provided a lot of time recently. I have summarized the ui effects used in the next few projects, shared them with you here, and made a record for myself (a demo will be posted later ).Mainly the following ui effects:
Multiple display progress bars
Open-source loading Animation
Rocket Launch
Sprinkl
Android efficiently loads large charts and multi-graph solutions, effectively avoiding program OOM and androidoom
The following code shows the maximum memory available for each application.
int maxMemory = (int) (Runtime.getRuntime().maxMemory() / 1024); Log.d("TAG", "Max memory is " + maxMemory + "KB");
The BitmapFactory class provides multiple parsing methods (decodeByteArray, decodeFile, decodeResource, etc.) for creating Bitmap objects. We should
A friend uses fusionchart in his project and needs to provide the word download function for multiple reports.
There is no doubt that it is only a very difficult problem.
Fusionchart provides the function of generating images on the server and the client, which is based on the flash display on the client.My friend's project is based on linux, and the com mechanism of the office itself cannot be called through jacob.Java-only word, POI, and docx4j operations can generate word Documents, table
Multiple charts show the flash effect simulated by the click switch effect. Click the thumbnail to zoom in and then click to restore the default value.
Xmlns = "http://www.w3.org/1999/xhtml" xml: lang = "zh" lang = "zh-cn">
IMGBOX
Click the thumbnails on the left for a larger image. The description connected to the clicked image is displayed here.
Note: for performance reasons, images are not resized and must be all of the same size.
The river
Recently, I was working on a Flex chart-related project. I searched for resources related to the Flex chart and found a website worthy of Recommendation: Quietly Scheming.
Two applications are particularly recommended:
1. Interactive Bubble Chart: http://www.quietlyscheming.com/blog/charts/interactive-bubble-chart/
This Bubble Chart is particularly brilliant. The original version was developed in Flash and does not provide source code, but its Flex
Create Beautiful charts in python
You may think that python is not suitable for graphic interface development. But python has a very beautiful icon module: pycha.
Isn't it good? Of course, this is only a small part of the chart, there are many other examples. Next let's take a look at how to install this module.
1. Install Pycairo
Because pycha depends on pycairo, we will first install the dependency.
Http://www.lfd.uci.edu /~ Gohlke/pythonlibs/first
Intuitive Git common command charts
Git is a powerful distributed version control system. It not only applies to managing the source code of large open-source software, but also has many advantages in managing private documents and source code.
Originally, I thought about writing down the most useful and commonly used Git commands, but I always thought it was useful and useful. The more results I remember, the more I remember.
Ubuntu perfectly in
I. Median
There are many ways to calculate the median of a heap:
1. Mean, that is, average, returns the mean.
2. Median sorts the number in the median, and finds the data in the middle. If it is an even number, the two numbers in the middle are average.
3. mode and mode. The maximum frequency.
4. Mid-range. Range = MAZ-min, which is the range of the maximum value minus the minimum value and the number distribution. Mid-Rand is (MAX + min)/2, which is the middle value of the range.
This ind
Label: style blog HTTP color AR for SP 2014 onIn cases like this, where the independent variable does not have an intrinsic ordering, it isOften a good idea to sort entries by the dependent variable. That's what we did inExample: rather than defining some (arbitrary) sort order on the job titles, we sortedThe number of records (I. e., by the dependent variable). Once the records have been sortedIn this way, we can formHistogram and a CDFAs beforeIn essence, variables cannot be sorted because the
Technology implementation3) method invocation4) ShowSix pie chart implementation 1) key technology implementation2) method invocation3) ShowSummarizeIt looks very simple, all the drawing methods are concentrated, in the future we need to use it will not be so troublesome.Download Program source code: http://download.csdn.net/detail/baihuaxiu123/9498733Blog Address: http://blog.csdn.net/baihuaxiu123Jane Book Address: Http://www.jianshu.com/users/0873ab6768a6/latest_articles Various polylines in
must have data, so matplotlib.dates provides a way to convert the date to data date2num, in this case, the data is one per 3 hours, but it is displayed only to the day, the following two lines of code:# every 8 to take a date is actually a day for in Data[::8]]# Each date corresponds to a value so that the location of the date can be located, so the value is also every 8 take a plt.xticks (X[::8])Get the scale values for the X and Y axes for inch for in data]Create an image and set the imag
How does Excel make a dynamic chart? Are you still distressed with scrolling controls for Excel dynamic charts, and today's small compilation of Excel dynamic chart making with scroll bar controls allows you to bid farewell to Excel dynamic chart making with scroll bar controls.
First, create a form control
1, click the Development tool--insert--scroll bar form control.
2, right click--Set the control format.
Mi
To the users of the illustrator software for detailed analysis to share the production of information graphs and gradient grid tutorial.
Tutorial Sharing:
Okay, the above information is small make up to you illustrator of this software users of the detailed production of information charts and gradient grid tutorials to share all the content, you see the users here, small series believe that at present everyone is very cl
how Excel dynamic charts are made
Preview
The dynamic chart is usually the function formula with the form control to complete, the following with this article to make a simple Excel dynamic chart bar.
Material: a monthly sales report
Production steps:
1, add the auxiliary table and set the formula
Formula:
=index (c3:g3,c$9)
2, according to the auxiliary table to add a chart
3, Add Drop-down sel
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.