I am updating our code from Aspose Cells for Java 2.5.4.1 to 7.4.0. (I know finally)
I have most everything working except I am not able to get the side and back wall borders to display on 3D charts.
I have attached a zip file containing the Example code ChartDemoServlet.java modified to create a 3D line chart with pretty much the settings I thought would work.
It also includes: Work.xlsx is the output I currently get. Work2.xlsx is the what the end result should be. (I copied Work.xlsx and manally made the changes.)
Didn't realize I had to set the color since for other border settings just making it visible or setting it to SOLID seemed to default to black.
These settings in Aspose Cells are for the Walls object and in Excel Walls includes both the Back Wall and the Side Wall together. Seems like a bug if changing a Walls object setting only changes the Back Wall settings. If you check the resulting chart it looks like you are modifying the Excel Walls formatting but it is not affecting the Side Wall like it should.
I'm not really interested in being able to change the settings for the Back Wall and Side Wall separately just to have the Walls settings work like it does in Excel. Though for completeness of being able to do what can be done in Excel, eventually having separate SideWall and BackWall objects seem appropriate.
Please use the following code to set
the border of the side wall:
e.g.
Line sideLine = chart.getSideWall().getBorder();
sideLine.setVisible(true);
sideLine.setStyle(LineType.SOLID);
sideLine.setWeight(10);
sideLine.setColor(Color.getBlack());
Since from Excel 2007 the walls of 3D chart have been splitted into two parts: side wall and back wall, so we have to use two wall objects to represent them separately and you can access them by
chart.getBackWall() and chart.getSideWall(). The older API, i.e…, chart.getWalls() currently is the same with back wall and will be deprecated in later versions.
We have logged your comments in our database against this issue. Please spare us some time, we will look into your rest of requirements and update you asap.
I just ran into some issues with the Aspose Cell 7.4.0.3 that you asked me to try.
Once I create a workbook with Aspose with the settings suggested everything looks fine. The problem is when I open either the Chart Wall More Walls Options dialog or the Chart Floors More Floors Options dialog. See the images in zip file.
In the Walls case when I open the dialog the Back Wall borders disappear.
In the Floors case when I open the dialog the Floor settings disappear.
I have included a workbook generated by Aspose that looks OK and I have included an After workbook which was saved after opening both dialogs.
Thanks for your further details and sample files plus screen shots.
I think you are right. When I open the generated output file e.g. “DisappearFloorandWalls.xlsx” into MS Excel 2007 and then click on the chart and then click Layout|Chart Floor, now click/select More Floor Options, the existing floor setting is gone. Similarly when I click on Chart Wall and click/select More Wall Options, now the existing wall settings is gone also.
I have logged your comments with details/attachments into our database against your existing issue “CELLSJAVA-40437”. We will look into it soon.
After further investigation, we come to know that it should be the bug of MS Excel or behavior. For confirmation, please create a 3D chart in MS Excel, you will
get the same strange results.