Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     Graph : show data text for line and hide it for bar

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Graph : show data text for line and hide it for bar
 Login/Join
 
Platinum Member
posted
Hi,

I've been playing with this since 7 this morning but it can't get it to work

I just want to show the data text for the line graph and hide it for the bar graph , but all it seems to do is show them both or hide them both

here is a car example of my problem
 
GRAPH FILE CAR
SUM   RETAIL_COST SALES
BY COUNTRY AS ''
ON GRAPH SET LOOKGRAPH VBRSTK2
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 *
setPlace(false);
setLegendAutomatic(true);
setSeriesFillColor(0,new Color(196,79,0));
setSeriesFillColor(1,new Color(204,255,204));
setSeriesType(0,0);
setSeriesType(1,2);
setMarkerDisplay(true);
setAxisAssignment(getSeries(0),0);
setAxisAssignment(getSeries(1),0);
setDataTextDisplay(true);
setCustomDataText(getSeries(0), true);
setCustomDataText(getSeries(1), true);
setDisplay(getDataText(0), true);
setDisplay(getDataText(1), false);
ENDSTYLE

END

 


Any clues?

This message has been edited. Last edited by: Pete,


D: WF 7.6.2 P. : WF 7.6.2 on W2003
------------------------------------------------------------------
I see myself as an intelligent, sensitive human, with the soul of a clown which forces me to blow it at the most important moments.

-Jim Morrison-

 
Posts: 206 | Registered: February 25, 2005Report This Post
Member
posted Hide Post
Hi Pete,

Try this....

setDisplay(getDataText(0),false);
setDisplay(getDataText(1),true);


Lakshmi
WF 713 WinXP/IIS/Apache Self Service
 
Posts: 27 | Registered: February 17, 2007Report This Post
Virtuoso
posted Hide Post
Pete

Is this in 7.1 or in 5.3

Did you try playing with the sequence of the commands?
I'm sure it can be done, but I can't find the proper documentation for it.

An other (not so elegant) solution might be changing on of the font colors to white (or to the same as the bg color)




Frank

prod: WF 7.6.10 platform Windows,
databases: msSQL2000, msSQL2005, RMS, Oracle, Sybase,IE7
test: WF 7.6.10 on the same platform and databases,IE7

 
Posts: 2387 | Location: Amsterdam, the Netherlands | Registered: December 03, 2006Report This Post
Platinum Member
posted Hide Post
Hi Frank,

Its in 5.3.3

i'v tried to reduce the set instructions to the absolute minimum like :

setSeriesType(0,0);
setSeriesType(1,2);
setDataTextDisplay(true);
setCustomDataText(getSeries(0), true);
setCustomDataText(getSeries(1), true);
setDisplay(getDataText(0), true);
setDisplay(getDataText(1), false);

but it still doesn't work


D: WF 7.6.2 P. : WF 7.6.2 on W2003
------------------------------------------------------------------
I see myself as an intelligent, sensitive human, with the soul of a clown which forces me to blow it at the most important moments.

-Jim Morrison-

 
Posts: 206 | Registered: February 25, 2005Report This Post
Platinum Member
posted Hide Post
suggestions,anyone ?


D: WF 7.6.2 P. : WF 7.6.2 on W2003
------------------------------------------------------------------
I see myself as an intelligent, sensitive human, with the soul of a clown which forces me to blow it at the most important moments.

-Jim Morrison-

 
Posts: 206 | Registered: February 25, 2005Report This Post
Guru
posted Hide Post
This code:
... in R714(MR and app development from dev studio) produces data text only on the line.


... R533 (MR browser version)... I can't get it to work. It looks like this is controlling it: setDataTextDisplay(true);.



Can you try it in your R714 Test environment?


GRAPH FILE CAR
SUM   RETAIL_COST SALES
BY COUNTRY AS ''
ON GRAPH SET LOOKGRAPH VBRSTK2
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 *
setSeriesType(0,0);
setSeriesType(1,2);
setDataTextDisplay(true);
setCustomDataText(getSeries(0), true);
setCustomDataText(getSeries(1), true);
setDisplay(getDataText(1), true);
setDisplay(getDataText(0), false);
ENDSTYLE
END
-EXIT
 


Both environments on W2003 EE

This message has been edited. Last edited by: Piipster,


ttfn, kp


Access to most releases from R52x, on multiple platforms.
 
Posts: 346 | Location: Melbourne Australia | Registered: April 15, 2003Report This Post
Platinum Member
posted Hide Post
Hi Piipster,

I tried it on our 7.1.4 test machine , and it works just fine , so thats great news , since we are going to 7.6.2 at the beginning of feb.

On 5.3.3. i dont get i working at all , so our clients will probably have to wait for 7.6 , to get their graphs the way they want it

Thanks for looking into it

P.


D: WF 7.6.2 P. : WF 7.6.2 on W2003
------------------------------------------------------------------
I see myself as an intelligent, sensitive human, with the soul of a clown which forces me to blow it at the most important moments.

-Jim Morrison-

 
Posts: 206 | Registered: February 25, 2005Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     Graph : show data text for line and hide it for bar

Copyright © 1996-2020 Information Builders