Setting CategoryAxisType to "Timescale" doesn' t work anymore !!
Cause . . . . . : RPG procedure ACELLSETCA in program AAITMRMP1/ACELLSRV received Java exception "java.lang.IllegalArgumentException: Invalid category type." when calling method "setCategoryType" with signature "(I)V" in class "com.aspose.cells.CategoryAxis".
If you want to know the constant values of TimeUnit/CategoryType, please print them with console application. I list all the constant values.
public interface TimeUnit {
/** * */ public static final short DAYS = 0x00; /** * */ public static final short MONTHS = 0x01; /** * */ public static final short YERAS = 0x02; }
public interface CategoryType {
/** * */ public static short AUTOMATIC_SCALE = 0x80;//0xEF; /** * */ public static short CATEGORY_SCALE = 0x0;//0x6F; /** * */ public static short TIME_SCALE = 0x10;//;0x7F;
ASeries aseries= serieses.get(0); aseries.setName(""+sheet1.getCell((min-2),17).getStringValue()); aseries.setValues("$V$"+ min +":$V$"+max+""); aseries.setColorVaried(false); Area area_a = aseries.getArea(); Line line = aseries.getBorder(); line.setWeight(1); line.setColor(new Color(0,0,255));
ASeries aseries2= serieses.get(1); aseries2.setName(""+sheet1.getCell((min-2),18).getStringValue()); aseries2.setValues("$W$"+ min +":$W$"+max+""); aseries2.setColorVaried(false); line = aseries2.getBorder(); line.setWeight(1); line.setColor(new Color(0,128,0));
if (indice_2!=null) { serieses.add("$V$"+ min , true); ASeries aseries3= serieses.get(2); aseries3.setName(""+sheet1.getCell((min-2),19).getStringValue()); aseries3.setValues("$X$"+ min +":$X$"+max+""); aseries3.setColorVaried(false);
Area area3 = legend.getArea(); area3.setForegroundColor(new com.aspose.cells.Color(192,192,192)); Line border1=legend.getBorder(); border1.setVisible(false); }