IB - Developer Center    Forums  Hop To Forum Categories  FOCUS/WebFOCUS    Line Graph
Go
New
Search
Notify
Tools
Reply
  
-star Rating Rate It!  Login/Join 
Member
Posted
I've a graph which is a combination of bar chart and the line chart . The lines that are getting displayed in the graph are starting from the center of the bar graph.Is there a way to make them start from the point where the bar charts?

Thanks in Advance


Lakshmi
WF 713 WinXP/IIS/Apache Self Service
 
Posts: 27 | Registered: February 17, 2007Reply With QuoteEdit or Delete MessageReport This Post
Master
Posted Hide Post
Hello Lakshmi and welcome to Focal Point,
Could you post an example of your problem using the CAR file?
Also, please update your signature to show the version of WF you are using.


Daniel
wf 7.6/WinXP/IIS/SSA
www.wrapapp.com
www.srl.co.il

 
Posts: 594 | Location: Tel Aviv, Israel | Registered: March 23, 2006Reply With QuoteEdit or Delete MessageReport This Post
Member
Posted Hide Post
Thanks Danny!!

I'm herewith attaching the code.

-* File testfile.fex
GRAPH FILE CAR
SUM CAR.BODY.DEALER_COST CAR.BODY.RETAIL_COST CAR.SPECS.HEIGHT CAR.SPECS.WEIGHT
ACROSS CAR.COMP.CAR
ON GRAPH SET LOOKGRAPH VBAR
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);
setO1LabelDisplay(true);
setO1AxisSide(0);
setO1MajorGridDisplay(true);
setO1MajorGridStyle(0);
setO1MinorGridDisplay(false);
setAxisAssignment(0,0);
setAxisAssignment(1,0);
setSeriesType(1,2);
setAxisAssignment(2,0);
setSeriesType(2,2);
setAxisAssignment(3,0);
setSeriesType(3,2);
setY1LabelDisplay(true);
setY1AxisSide(0);
setY1MajorGridDisplay(true);
setY1MajorGridStyle(0);
setY1MinorGridDisplay(false);
setTextFormatPreset(getY1Label(),-1);
setTextFormatPattern(getY1Label(),"#.##");
setPieFeelerTextDisplay(1);
setPieLabelDisplay(0);
setTextFormatPreset(getPieSliceLabel(),1);
setRiserBorderMode(1);
setSeriesDefaultTransparentBorderColor(true);
setUseSeriesBorderDefaults(true);
setLegendDisplay(true);
setFontSizeAbsolute(getY1Title(),true);
setFontSizeAbsolute(getY1Label(),true);
setFontSizeAbsolute(getY2Title(),true);
setFontSizeAbsolute(getY2Label(),true);
setFontSizeAbsolute(getO1Title(),true);
setPlace(true);
ENDSTYLE
ON GRAPH SET STYLE *
PAGESIZE='Letter',
LEFTMARGIN=0.250000,
RIGHTMARGIN=0.250000,
TOPMARGIN=0.250000,
BOTTOMMARGIN=0.250000,
SQUEEZE=ON,
ORIENTATION=PORTRAIT,
$
TYPE=REPORT,
GRID=OFF,
FONT='TIMES NEW ROMAN',
SIZE=10,
BACKCOLOR='NONE',
STYLE=NORMAL,
$
TYPE=DATA,
ACROSSCOLUMN=N2,
COLOR='GREEN',
$
TYPE=DATA,
ACROSSCOLUMN=N3,
COLOR='BLUE',
$
ENDSTYLE
END



This graph has totally four series (Series 0 is a bar graph . Series 1-3 are lines) . I want these line series to start from where the bar starts.(currently it starts from the mid of bar graph).I'm using WF 7.1
 
Posts: 27 | Registered: February 17, 2007Reply With QuoteEdit or Delete MessageReport This Post
Master
Posted Hide Post
Lakshmi,
If i understand you correctly you want the dots of the line graphs no to be set in the middle of the bar graph but to the side.
I looked at the Perspective Manual and I didn't find anything that would allow this. I suppose that it is because the graph is centerd over the x-axis values.
What you can do is make the bar narrower with the following command:
setRiserWidth(n);

where n is a value between 1 and 100
I hope this helps you.


Daniel
wf 7.6/WinXP/IIS/SSA
www.wrapapp.com
www.srl.co.il

 
Posts: 594 | Location: Tel Aviv, Israel | Registered: March 23, 2006Reply With QuoteEdit or Delete MessageReport This Post
Silver Member
Posted Hide Post
If you go to the 'Properties' tab on the graph assitant. Under the 'Y Axis' tab there is a drop down to elect how you wish to treat Zeros: plotted ,as a gap, as a dotted line to 0, or as an interpolated doted line to 0.


WF 767, XP, HTML, PDF, Excel 2000+,
 
Posts: 36 | Location: NY | Registered: February 06, 2007Reply With QuoteEdit or Delete MessageReport This Post
Member
Posted Hide Post
It's applicable for Zero Values alone right? i've values available for these....


Lakshmi
WF 713 WinXP/IIS/Apache Self Service
 
Posts: 27 | Registered: February 17, 2007Reply With QuoteEdit or Delete MessageReport This Post
 Previous Topic | Next Topic powered by eve community  
 

IB - Developer Center    Forums  Hop To Forum Categories  FOCUS/WebFOCUS    Line Graph

Copyright © 1996-2008 Information Builders, leaders in enterprise business intelligence.