gaps in category axis

B

BC

I have 2 charts, both of which have date as the x-axis. Both charts have
associated VBA code to allow the start and end dates on the x-axis to be
changed, and then a button to regenerate the chart for the new date range. On
one of the charts, when I change a large date range to a much shorter date
range, the x-axis acquires extra values, but on the other chart when I do the
same thing the x-axis has big gaps between the values. How can I get thie
second chart to generate extra values instead of leaving gaps?
 
J

Jon Peltier

Does one chart have a date-scale axis and the other a category style axis?
You may get a category style axis if the format of the dates is not
recognized by Excel, or if the setting was explicitly changed (Chart menu >
Chart Options > Axes tab in Excel 2003 & earlier, Format Axis dialog in
Excel 2007).

- Jon
 
B

BC

Hi Jon,

Both charts have Category (X) axis set to automatic, and both have the dates
displayed in custom format mmm-yy.

BC
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top