I have a dual axis line graph, based on GGSALES, and I'm using the timescaleaxis feature. Problem is the legend disappears. Is there any way to get the legend to show for a dual Y axis graph?
GRAPH FILE GGSALES
SUM UNITS DOLLARS
ACROSS DATE
ON GRAPH SET LOOKGRAPH VLINSTK2
ON GRAPH SET GRAPHEDIT SERVER
ON GRAPH SET BARNUMB OFF
ON GRAPH SET 3D OFF
ON GRAPH SET VZERO ON
ON GRAPH SET GRID ON
ON GRAPH PCHOLD FORMAT PNG
ON GRAPH SET GRAPHSTYLE *
setMarkerDisplay(true);
setConnectLineMarkers(true);
setConnectScatterMarkers(true);
-*
setLegendDisplay(true);
setUseTimeScaleAxis(true);
-*setUseSampleData(false);
-*setTextFormatPreset(getO1Label(),19);
-*
setO1LabelDisplay(true);
setO1AxisSide(0);
setO1MajorGridDisplay(true);
setO1MajorGridStyle(0);
setO1MinorGridDisplay(false);
setAxisAssignment(0,0);
setSeriesType(0,2);
setAxisAssignment(1,1);
setSeriesType(1,2);
setY1LabelDisplay(true);
setY1AxisSide(0);
setY1MajorGridDisplay(true);
setY1MajorGridStyle(0);
setY1MinorGridDisplay(false);
setTextFormatPreset(getY1Label(),-1);
setTextFormatPattern(getY1Label(),"#.##");
setY2LabelDisplay(true);
setY2AxisSide(1);
setY2MajorGridDisplay(true);
setY2MajorGridStyle(0);
setY2MinorGridDisplay(false);
setTextFormatPreset(getY2Label(),-1);
setTextFormatPattern(getY2Label(),"#.##");
setPieFeelerTextDisplay(1);
setPieLabelDisplay(0);
setTextFormatPreset(getPieSliceLabel(),1);
setRiserBorderMode(1);
setSeriesDefaultTransparentBorderColor(true);
setUseSeriesBorderDefaults(true);
setFontSizeAbsolute(getY1Title(),true);
setFontSizeAbsolute(getY1Label(),true);
setFontSizeAbsolute(getY2Title(),true);
setFontSizeAbsolute(getY2Label(),true);
setFontSizeAbsolute(getO1Title(),true);
setPlace(true);
ENDSTYLE
ON GRAPH SET STYLE *
SQUEEZE=ON,
ORIENTATION=PORTRAIT,
$
TYPE=REPORT,
GRID=OFF,
FONT='TIMES NEW ROMAN',
SIZE=10,
$
ENDSTYLE
END
This message has been edited. Last edited by: Kerry,
Thanks.
Mark WF 7.6 Windows
April 08, 2010, 02:57 PM
Microfich
Employing setUseTimeScaleAxis(true) disables the legend display. I can't find anything precise in the doc but all examples using setUseTimeScaleAxis have setLegendDisplay(false)
That's kind of what I've been experiencing, even though I setLegendDisplay(true).
I don't see why it has to disable the legend...it's kind of important if you have multiple lines on the same graph. Is this a bug? If it's by design, then it needs to be changed.
Thanks.
Mark WF 7.6 Windows
April 08, 2010, 03:47 PM
Microfich
I agree on the importance. If it's important enough to you, open a case.
FYI, I have opened a case. According to development, using timescale axis turns off the legend. Why it does is beyond me, but at any rate a new feature request has been added.