Hi I'm using apache poi 3.17 and I made a bar chart using the org.openxmlformats.schemas.drawingml.x2006.chart.CTChart
interface, like the image below:
I need to set the min and max value for the left axis. Something like 0 and 1 to adjust the columns.
Using org.apache.poi.ss.usermodel.charts.ValueAxis
I can do that with the methods: setMinimum(0)
and setMaximum(1)
.
Is that possible ? using the package org.openxmlformats.schemas.drawingml.x2006.chart
.
If yes which class or iterface should I use?
Anyone can help me?
The code I use to set CTValAx is below and I get in this answer here
CTValAx ctValAx = ctPlotArea.addNewValAx();
ctValAx.addNewAxId().setVal(123457);
ctScaling = ctValAx.addNewScaling();
ctScaling.addNewOrientation().setVal(STOrientation.MIN_MAX);
ctValAx.addNewDelete().setVal(false);
ctValAx.addNewAxPos().setVal(STAxPos.L);
ctValAx.addNewCrossAx().setVal(123456);
ctValAx.addNewTickLblPos().setVal(STTickLblPos.NEXT_TO);
CTValAx
. – Axel Richtergrepcode.com
was available as information resource. Now it is down and so we need doingjavadoc
our own to get information. – Axel Richter