· Execution of Histogram Graphical Representation by Reading Files ·
The software available in this repository allows the graphical display of a histogram showing the frequency of use of the principal e-mail domains most used in the world, reading the set of e-mail addresses from a text file.
The development of this practice consists of the creation of a histogram where the percentage of existing users for a given e-mail provider is represented using a bar chart diagram. The software consists of two versions where the Java libraries JFreeChart and JCommon are used for the graphical representation of the histogram.
The first version of this software introduces the creation of the main window of the application, and its design elements, such as the title, name of the axes, and dimensions, as well as the creation of the corresponding bar chart which will be arranged in that frame.
Similarly, we proceed to the creation of the dataset that will be used as a basis to create the histogram and which represents the e-mail domains. Likewise is checked that the e-mail addresses are correct in order to obtain the domain and calculate the frequency. The development of the project is based on the MVC (Model-View-Controller) pattern.
The second version of this software takes advantage of the implementation developed in the first version and introduces the class called Histogram, which provides the necessary public methods for the creation of a histogram as well as for obtaining information related to it. The development of the project is based on the CIPO (Context-Input-Process-Output) model.
The results of running each of the implemented versions can be found here.
-
Clone the repository using git with
git clone https://github.com/BrianSuarezSantiago/Histogram-Graphical-Representation-by-Reading-Files.git
command or download from Source Code. -
Move to the directory where you have the code.
-
Compile using
javac -d . *.java
command followed by thejava histogram.Main
command to run and use the available software.
Made with