Skip to content

danrose499/Letter-Visualizer-GUI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 

Repository files navigation

Letter Visualizer GUI

This JavaFX application displays information about the letter frequencies of a chosen text file. The user can choose which text file to analyze by typing its name in the TextField at the top of the window. The chosen file needs to be in the same directory as the application. If the application can't find the selected file, an error message will appear beneath the TextField:

errorChart

When the appropriate file is found, the default settings of the application are to display the letter frequencies in a PieChart, with the slices of the PieChart being ordered by letters that appear most to letters that appear the least, and with the labels of each slice displaying the letter and its frequency. However, by using the lower TextField and RadioButtons, these settings can be adjusted; The lower TextField can be used to select the amount of letters to display in the chart. This is useful when the user wants to see how many times the X most frequenct letters appear. The RadioButtons on the bottom can be used by the user to have the information displayed in a BarChart instead of a PieChart, to display the slices/bars alphabetically instead of by frequency, and the label the slices/bars with the percent that the respective letter appears instead of its frequency.

pieChart

barChart

Note: This project was based on a class assignment from CSc 221 - Software Design Lab where we had to recreate the PieChart JavaFX class and use it to display the character frequencies of "Alice in Wonderland" (see the Pie-Chart-GUI repository: https://github.com/danrose499/Pie-Chart-GUI). By using the existing PieChart and BarChart classes from the JavaFX library, the features of that project were extended for this project with the additional features explained above.

About

Reads a chosen text file and shows customizable charts displaying letter frequencies

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages