Bar graph X axis problem

Welcome to our Forums Technical Support Support Desk Bar graph X axis problem

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

      Hi, I’m a new user and I am trying to make a bar graph with date on X axis.

      I have measurement made in different dates to different treatments and want to represent a grouped bar (1 bar per treatment) in each date.

      I could make the graph but I can’t modify the x axis (it indicates positions 1 2 3 4…and not the dates).

       

      #3462
      dgteam
      Moderator

        It sounds like you need to use the Bar command (as opposed to the Bars).

        For an explanation of the difference see:

        How to Make a Bar Graph

        Basically, the Bar command has a numerical axis that can understand dates, while the Bars command is designed to work with categorical data..

        See if this helps and feel free to send a data portion of your data if your still having trouble.

         

         

        #3463
        dgteam
        Moderator

           

          I was thinking about at your question again wanted to clarify how to create a grouped or side-by-side bar using dates. The Date axis is really a numerical axis where the underlying unit is seconds.

          It sounds like you data might look something like this ….

          Data

          Here are the steps to create a side-by-side on a date axis, where every day has one grouped bar.

          1. Add a Bar command can be added from the Command menu.
          2. Set Value = Treatment A.
          3. Set Where = Date.Bar1
          4. Set the Width to Specified, the number of seconds per day divided by 2.
          5. Set the Bar offset to the number of seconds per day divided by 4.
          6. Specify the Fill with (here we set to a pattern).Bar2
          7. Select the command and make a copy (command-C to copy, command-V to paste).
          8. In the copy, set Value = Treatment B.
          9. Set the Bar offset to be positive the same shift.
          10. Change the Fill with to something different.Bar3

          We also added a Legend command.

          Notice how there is a slight gap between the bars.

          If you want them to be directly side-by-side, then change the scaling factor to ‘1’.  This value scales the width to a fraction of the total width.

          Bar4

          I uploaded this example to File/On-line Examples.

          Does this example help for your data?

           

           

           

          #3473
          veronica giorgi
          Participant

            Thank you!

            Very helpful and clear!

             

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

          Welcome to our Forums Technical Support Support Desk Bar graph X axis problem