[SOLVED] Legend not getting displayed for a single series
When I have only one series displayed along Y axis,The legend is not getting displayed. Please see the code below:
-* HTML Tool -* Created by Graph Assistant -* FF Line do not change this line! Field Name -* FF Line do not change this line! Alias -* FF Line do not change this line! Format -* FF Line do not change this line! Segment -* FF Line do not change this line! displayTree=0 GRAPH FILE CAR SUM CAR.BODY.SALES ACROSS CAR.COMP.CAR ON GRAPH SET LOOKGRAPH VBAR ON GRAPH SET 3D OFF ON GRAPH SET BARNUMB OFF ON GRAPH SET GRID ON ON GRAPH SET GRAPHEDIT SERVER ON GRAPH SET VZERO ON ON GRAPH SET GRAPHSTYLE * setSeriesType(0,1); setLegendDisplay(true); setLegendMarkerPosition(0); setMarkerDisplay(true); setUseSeriesShapes(false); setConnectLineMarkers(false); setConnectScatterMarkers(false); setO1LabelDisplay(true); setO1AxisSide(0); setO1MajorGridDisplay(true); setO1MajorGridStyle(0); setO1MinorGridDisplay(false); setY1LabelDisplay(true); setY1AxisSide(0); setTextFormatPreset(getY1Label(),1); setY1MajorGridDisplay(true); setY1MajorGridStyle(0); setY1MinorGridDisplay(false); setFontSize(getO1Label(),12); setFontSizeAbsolute(getO1Label(),true); setPlace(true); ENDSTYLE END -* End Graph Assistant
I need "SALES" to be displayed in the legend. Please let me know how I can achieve this.
Thanks Priya.This message has been edited. Last edited by: Kerry,
769 Windows
Using all the above
December 24, 2009, 12:09 PM
VLozovsky
Try changing the following line:
ON GRAPH SET LOOKGRAPH VBAR to ON GRAPH SET LOOKGRAPH VLINE
You will still get a bar chart by having setSeriesType(0,1); in your GRAPHSTYLE section.