Figured Out the XY Line Graph Secondary Y Axis
This morning I was reading the JavaDocs for VantagePoint's TwoDimCrossScatterViewer to see if I was missing anything on the secondary Y axis issue I was having yesterday, and I saw it. In working with the new graph type we have two ways of looking at the data - as pairs and as columns. In the first cut I assumed they wanted the pair number. There, in the docs, was the key I'd been missing. In the docs for the TwoDimCrossScatterViewer was the method:
public void setSecondary(int colNum, boolean isOnSecondary)
Clear as day... they are saying that in order to put a column on a secondary axis, you have to specify the column. Not the pair. You can put either the X or Y on the primary or secondary axes - making this far more configurable than I had planned. This was very clever of Gordon. Love it.
The result is beauty:
I fired off an email to Gordon to tell him I "got it", and to ask him which question of mine he wanted to answer next. There were three:
- How to format Dates on Time Series Graphs - this is so we can make better line graphs for the developers doing a lot of time-series data.
- How to put Labels on the bars in Bar Graphs - this is in order to make the data identified in the graph and not by the legend.
- How to put Bars in a TimeSeries Graph - another developer wanted to have bars and not lines on the time series - another graph I'd have to add support for.