I am defining custom data format via Apache POI. I know I need to use following construction:
DataFormat data = this.workbook.createDataFormat();
cellStyle.setDataFormat(data.getFormat("YY:DDD:HH:MM:SS"));
I found a reference in Apache POI documentation about the formats.
The data i need to format represents date and time i.e.:
00:000:00:15:00
YY:DDD:HH:MM:SS
So far it works all right. Right click on Excel cell, checking cell format -> custom yy:ddd:hh:mm:ss. However I am not able to make a chart out of this custom time format. Selecting this data:
task | time
-------|----------------
task 1 | 00:000:00:15:00
task 2 | 00:000:00:20:00
task 3 | 00:000:00:10:00
and choosing option insert bar chart outputs some gibberish. Is there a way to make the chart work, without creating additional data(like counting total seconds and displaying the seconds values)?
12:Fr
today, because excel would interpret this as year and day. Have you tried to really write something in a cell with that format? – Jook Oct 12 '12 at 12:34