Rounding of time in charts

When I run the following code, the chart generated takes only the hour part into consideration. Is there a way to show the exact time? If not, then at least the hour and the minute?

h2. SQL Job durations

{chart:title=SQL Job finish times by day|type=timeSeries|dateFormat=MM/dd/yyyy| dataOrientation=vertical|columns=StartDate,EndTime|legend=true|height=500|width=800|dataDisplay=true|yLabel=Time|xLabel=Date|categoryLabelPosition=up45|rangeAxisLowerBound=0|rangeAxisUpperBound=24|rangeAxisTickUnit=2}
| StartDate | EndTime |
| 12/26/2012 | 05:09:39 |
| 12/25/2012 | 04:52:47 |
| 12/24/2012 | 04:57:37 |
| 12/23/2012 | 04:37:42 |
| 12/22/2012 | 05:21:21 |
| 12/21/2012 | 06:29:20 |
| 12/20/2012 | 04:54:13 |
| 12/19/2012 | 06:36:23 |
| 12/18/2012 | 06:27:02 |
| 12/17/2012 | 09:48:31 |
| 12/16/2012 | 08:12:18 |
| 12/15/2012 | 12:37:35 |
| 12/14/2012 | 13:15:58 |
| 12/13/2012 | 09:39:34 |
| 12/12/2012 | 08:18:10 |

{chart}

4 answers

The y axis values are numbers (not dates) and the default is to forgive bad data if possible. Therefore it is only interpreting the number before the : as valid. You would need to express your end time value as a numeric value like 5.15

Bob,

Thanks for the quick reply. Showing EndTime as a numeric value is not an option. It confuses. 0.25 could be confused as 25 minutes when it actually would be 15 minutes. I tried forgive=false as well, but that did not help. Any other ideas?

No, it is numeric, so there is nothing you can do there. Suggest creating a user macro that converts a time to a number.

I would have loved to be able to provide the datatype for y-axis in this case - whether a number or a time and let the chart macro handle it. I am not an administrator, so can't create macros.

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Published 14 hours ago in Confluence

Think you know shares vs. @mentions in Confluence? Take this collab quiz.

To anyone who doubts that Atlassians are a little too obsessed with collaboration, and tools related thereto, let me describe a recent discussion we had (which took place on our internal Confluence, ...

99 views 2 4
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you