I'm trying to make a bar and line chart using Apache POI in Powerpoint like this:
I found a solution for
excel to the problem, but it creates the chart in Excel instead of PowerPoint, my question now is, is there a way to convert the code in the other solution to one that works for PowerPoint, so I can add it to a slide. And have the input as lists instead of rows/columns in the excel file?
Related
I am trying to read ms-excel sheet cell value which contains RichText. Example below.
Welcome to apache-poi world.
Please use latest version of poi.
As you can see the word contains bold and italic word and new paragraph. I want to read this text along with style format, So that i can display in UI the way i have entered.
I searched a lot but could not get solution to it.Is there any way to get the tabs colour in excel using java.enter image description here
In the image u will find three tabs sheet1,sheet2,sheet3 in excel i want to get the color of three tabs using java.
If you are using the apache POI library.
You can use
HSSFColor.getIndexHash().get(myCell.getCellStyle().getFillBackgroundColor())
to get the color infomations of the cell.
Deatils of the apache POI getFillBackgroundColor methd
For more informations see stackoverflow topic maybe it is helpfull.
I am editing an excel sheet using POI here is a sample data:
Now there is a chart created for this data like this:
Now the number of rows of this data keeps changing everyday. So I need to set the range for this graph using macros. so how to change both series and category for a graph using macros? Or perhaps we can do it in POI itself?
I'm able to get text of textboxes using code described in answer of How to get text from textbox of MS word document using Apache POI?
But i found no way to edit text in a textbox for example to replace some placeholders. Iterate over runs of embeddedPara and setText() does not work. Im using apache poi 3.13.
I have searched for this and implemented it using a template file with sample data and the pie chart in it. I need the following:
I want to add more rows (add more data). Modifying the existing data in the defined data range works fine. (Adding extra row by using shiftRows() did not work)
I want to move the pie chart in the current sheet. I might have the pie chart in a specific position in the template. But, I need to modify the data and need to move it to a different position within the sheet.
If anyone can provide direction on this or point to a working example, it would be really helpful.
NOTE: I want a pure POI solution.
Please check if this can help.
JFreeChart