You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Scale of x axis in Numbers if uneven

Is there a way to make a bar chart when the x-axis scale is not linear--that is, when some values are skipped in my data, I want them to be skipped in the chart. I do not want a scatter chart, however.

Posted on Sep 3, 2019 6:03 PM

Reply
Question marked as Top-ranking reply

Posted on Sep 4, 2019 12:15 AM

Hi kfkolonel,


A "Bar chart", whether the bars are horizontal or vertical, is a "Category chart." All category charts allot equal space on the category axis to each category.


For your year long chart, that means you have 365 categories to place on that axis. For a US Letter size page in portrait orientation, your category axis for a vertical bar chart is 7.5" long, minus any space taken by labels for the vertical 'Values" axis.

That's a tiny bit more than 2 hundredths of an inch (about half a millimetre) width to hold one day's bar (AND the space separating it from the next day's bar).


Scatter charts have two value axes, so dates are automatically spaced proportionally according to their values, rather than equally like categories.


Here's a quick example of a 'bar' chart constructed using a 2D scatter chart as the base.

The 'bars' are negative error bars set to 100% of the data point value.

As it's a 'quick' example, I've done no tweaks to it other than setting the data-point symbol to none, setting 100% negative only error bars, setting the thickness of those bars to 3 pt, and rotating the x axis labels to left 90°. Several other adjustments are available. Explore!


Regards,

Barry


3 replies
Question marked as Top-ranking reply

Sep 4, 2019 12:15 AM in response to kfkolonel

Hi kfkolonel,


A "Bar chart", whether the bars are horizontal or vertical, is a "Category chart." All category charts allot equal space on the category axis to each category.


For your year long chart, that means you have 365 categories to place on that axis. For a US Letter size page in portrait orientation, your category axis for a vertical bar chart is 7.5" long, minus any space taken by labels for the vertical 'Values" axis.

That's a tiny bit more than 2 hundredths of an inch (about half a millimetre) width to hold one day's bar (AND the space separating it from the next day's bar).


Scatter charts have two value axes, so dates are automatically spaced proportionally according to their values, rather than equally like categories.


Here's a quick example of a 'bar' chart constructed using a 2D scatter chart as the base.

The 'bars' are negative error bars set to 100% of the data point value.

As it's a 'quick' example, I've done no tweaks to it other than setting the data-point symbol to none, setting 100% negative only error bars, setting the thickness of those bars to 3 pt, and rotating the x axis labels to left 90°. Several other adjustments are available. Explore!


Regards,

Barry


Sep 3, 2019 6:33 PM in response to kfkolonel

I don't mean a bar chart, but rather a 2D column chart. I think the answer is that only a scatter chart will do what I want. The other option is to include zero values in my table for the missing y-values. The X-values I am using are dates from Jan 1 through Dec 31, so putting in zero values for the 200 places where the Y-values are missing are now missing would be impossible.

Excel does this easily, but I refuse to pay Microsoft a subscription for their 'sheet when this is the only thing I have found that Numbers cannot do.

Sep 4, 2019 7:24 PM in response to Barry

A genius workaround!!!! Thank you. I wonder, though, why the Numbers designers did not include a "scatter bar graph". (I note that it is called a "chart" rather than a "graph". I think this is because it was designed by business people rather than by science people.)

The Mac is being used by more and more science-types, and I wish Apple would not discount them. I always thought it interesting that Macs are all over TV except on shows such as The Big Bang, where a Mac is never seen. That was my experience in a college science department. I used a Mac, but I was in the minority.

Again, thank you for rescuing me.

Scale of x axis in Numbers if uneven

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