Extra x-axis with date

DataGraph Forums Technical Support Support Desk Extra x-axis with date

Tagged: ,

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #4803
    kourosh kalayeh
    Participant

      Hi,

      It seems that in the current version of DataGraph, we cannot have second x-axis when the main x-axis is date.  Is that the case?

      If so, do you have any workaround to have two x-axes when one is date (time to be more precise).

      Thanks,
      Kourosh

      #4804
      dgteam
      Moderator

        Correct – the Extra Axis command does not currently work with dates.

        Can you send more information about what you are trying to achieve?

        #4806
        kourosh kalayeh
        Participant

          I have multiple data points obtained at different time points.  Each of these time points are associated with a specific label (e.g., v01b01r01, v01b01r02, …).  I have plotted my data with x-axis being time points (see the attached screenshot).  I want a second axis to show the labels associate with the data points as well.

          Thanks,
          Kourosh

          Screen Shot 2020-09-15 at 9.58.52 PM

          #4810
          dgteam
          Moderator

             

            Do you mean something like this?

            AxisTimeLabels

            I created the bottom axis in another graph and then included by overlaying a Graphic command.  If this is what you mean let me know and I can provide more details.

            #4811
            kourosh kalayeh
            Participant

              Yes, something like this.

              #4812
              dgteam
              Moderator

                I did this by creating a clone of the first graph, setting the axis labels on the clone, and then including the clone as an overlay of the first graph.

                Before making the clone, set the margins to make sure they will be the same between graphs. Then click on the clone icon on the thumbnail.

                AxisLabels1

                Here are the steps I used on the clone,

                1 – Set the margin below to a lower value (e.g., 1 in).

                2- Uncheck Draw-y numbers on the Axis settings.

                3 – In the Style settings, set the Box style to ‘Only axis’ and the Grid to ‘None’.

                4 – Click Hide on the Points command.

                5 – In the Axis settings, change the X tick marks to ‘Labels’ and then select your Date/Time column for the locations and the column for the labels.

                AxisLabels2

                Now the clone just contains the labels at the axis locations.

                Click on the original graph.  Use a Graphic command to overlay the new graph.

                Here is what it looks like in this simple example:

                AxisLabels3

                If any of the steps are not clear, let us know.  It is a few steps but it will be dynamic. Change any of the data the axis will update.  We will try adding the Extra axis option for the next version for dates so this will be easier in the future.

                #4813
                dgteam
                Moderator

                  Also – really should set the Where setting on the Graphic command to ‘Figure’.  Then the graphic will overlay the original graph without any offset.

                  AxisLabels4

                  #4814
                  kourosh kalayeh
                  Participant

                    Thanks for the detailed explanation.  While this will definitely does the job for the time being, but it does not provide full control.  I appreciate putting it in the DataGraph wish list.

                    Kourosh

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

                  DataGraph Forums Technical Support Support Desk Extra x-axis with date