Home » excel » java – plot the graph using different Excel files

java – plot the graph using different Excel files

Posted by: admin May 14, 2020 Leave a comment


I have some data stored in different Microsoft Excel Worksheet (.xlsx) .
Now i want to ploat a graph by using these data (which are in different .xlsx) files.
How can i do this ?
means which language or platform i should use or any other help related to that.

How to&Answers:

Matlab has the built-in function xlsread which parses data from Excel files. Depending on how the files are organized, writing some code to read them all should be easy, and concatenating the matrices of data and plotting them is also pretty easy.


You can use Java API’s to create graph if you are familiar with java. You can use Apache POI or jfreechart or openxmlformats(api provided by apache).


if you use saveAs to save them as CSV files, you can read them in very easily to Java and split the values with String.split(“,”). If you want to keep them as .xlsx files, JExcelApi might be able to help, though personally I’ve never used it. As for graphing, I’d recommend Javaplot/gnuplot, Jzy3D, or JMathPlot depending on what you want to graph. They’re free and relatively easy to use.