Numbers: Issues with display of graphs

I'm having an issue with a graph in Numbers.


I have a table that accumulates information from other worksheets (Jan - Dec).


User uploaded file

So see where I've got Hours and Average Hours and how they are nicely formatted with Hours/Minutes? Well, I've got a graph of Hours which looks like this:


User uploaded file

It's not perfect but it has the proper formatted values.


But if I do a graph for Average Hours I get this:


User uploaded file


It's a complete mess and I don't know how to fix it. I've compared the settings according to the Hours graph but they match so I'm assuming there's something in the data but I can't work out what it is because the format matches that of Hours as well.


Any ideas?


Thanks.

MacBook Pro, macOS Sierra (10.12.3), iPhone 6 Plus

Posted on Feb 22, 2017 12:20 PM

Reply
10 replies
Sort By: 

Feb 26, 2017 4:19 PM in response to lowededwookie

Hi 'w,


Numbers charts the data that you supply, not the data that you display.


The hours and minutes displayed in the first chart have been entered to record only the number of hours plus the number of minutes, so what you see is what the cell actually contains.


The average hours, though, are calculated values which may contain values expressing seconds and milliseconds of duration, formatted to display the duration to the nearest whole minute. You see the formatted value, but the chart gets the actual value in that cell.


In the example below, the chart is showing the values in the two blue filled cells in the table.

The upper cell contains a copy of the AVERAGE calculated in the bottom row of the Hours column and formatted to display only Hours and Minutes, charted by the first column.

The lower cell contains a copy of the value calculated in the cell directly below it—the same AVERAGE, rounded to the closest whole minute—charted by the second column.

Formulas below.

User uploaded file

Formulas:

Both formulas use the same data in column E of the table, most of which is not visible in the image above.


For the chart column labeled Mon, Jan 2, 2016:

=AVERAGE(E)


For the chart column labeled Tue, Jan 3, 2017:

=DURATION(,,,ROUND(DUR2MINUTES(AVERAGE(E)),0))


Because ROUND works with numbers, but not with durations, it's necessary to convert the average duration to a number, using DUR2MINUTES, round that number to the nearest whole number, then convert the rounded number back to the duration represented by the rounded number.


Regards,

Barry

Reply

Feb 26, 2017 5:44 PM in response to Barry

Barry wrote:


Numbers charts the data that you supply, not the data that you display.


From the 'Charting Basics' template at File > New:


User uploaded file


Then with display format slightly changed but no other changes, the whole chart changes:


User uploaded file


That is, if 'Same as Data Source' is selected.


So the data you display can affect a chart.


SG

Reply

Feb 26, 2017 7:25 PM in response to SGIII

"So the data you display can affect a chart."


So I see.


I'm sure I tried that in the example above, and found it did not cure the issue. The difference may be using duration values rather than number values. Formatting the AVERAGE values to display only hours and minutes did not remove the decimal places from the value label on the bars.


Barry

Reply

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Numbers: Issues with display of graphs

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.