Date Axis in Bars command

DataGraph Forums Technical Support Support Desk Date Axis in Bars command

  • This topic has 2 replies, 2 voices, and was last updated 3 years ago by thomas white.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #7573
    thomas white
    Participant

      When I plot data using the Plot command I get a nicely formatted horizontal date axis. It does a good job of automatically adjusting the tick marks for the space available and shows week or month incrementally.

      When I want to get that same type of axis in the Bars command. When I specify a column of date data the command tries to write out each date making an unreadable axis.

      Screen Shot 2021-10-26 at 10.22.45Screen Shot 2021-10-26 at 10.25.18

      #7576
      dgteam
      Moderator

        We made up a data set with a similar issue, where you have many rows of data.

        Bars1

        Here it is using the Bars command.

        Bars2

        You could rotate the x labels in the Axis settings. But at some point you would have too many. The important thing to realize is that all the Bars command does is place a label at each group of bars.  This is treated as a categorical axis, not a numerical axis, which is why every label is drawn.

        If you set the Labels to “Nothing”, you can see that the Bars are actually drawn at the row numbers on the x-axis.  Now the axis is numerical so it will adjust.

        Bars3

        The fact that you have just a few bars over a long span, I recommend using a Bar command instead. Find under the command menu (Command > Add Bar).  In this command, you can specify the numerical location of the bars.  You can offset them left and right to get the side-by-side look, or overlay as shown here.

        Bars4

        There is a comparison of the commands in the How to make a bar graph article that explains further.  The article also compares the Pivot command, which can also plot bars on a numerical axis when you have your data in a flattened format.

        Hope this helps!

        #7627
        thomas white
        Participant

          Wow! Thanks for the helpful and detailed response. I made the changes you suggested to my plot and it looks much better now.

          I’m using DataGraph to plot manual measurements of Snow Water Equivalent from the San Juan Mountains in Colorado. The field dig several times a winter at subalpine and alpine study plots. This plot now communicates the different water contents very easy to understand fashion.2020

        Viewing 3 posts - 1 through 3 (of 3 total)
        • You must be logged in to reply to this topic.

        DataGraph Forums Technical Support Support Desk Date Axis in Bars command