DataGraph Forums › Technical Support › Support Desk › Extra x-axis with date
Tagged: Date, extra axis
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
Correct – the Extra Axis command does not currently work with dates.
Can you send more information about what you are trying to achieve?
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

Do you mean something like this?

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.
Yes, something like this.
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.

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.

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:

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.
Also – really should set the Where setting on the Graphic command to ‘Figure’. Then the graphic will overlay the original graph without any offset.

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
DataGraph Forums › Technical Support › Support Desk › Extra x-axis with date