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     [CLOSED] setDataTextPosition()

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] setDataTextPosition()
 Login/Join
 
Silver Member
posted
I've a graph with 2 series, bar (series 0) and a line (series 1). I need to display bar values on the bottom of the graph and line vlaues on top of the line.
I tried this, it works fine for line values but bar values also stay on top:

setDisplay(getDataText(0),true);
setDataTextPosition(getDataText(0),5);
setDisplay(getDataText(1),true);
setDataTextPosition(getDataText(0),1);

Also, there are occasions when sometimes line vlaues appear on bars and sometimes on top of them (depending on the line), is there a way to automatically adjust the font color for line vlaues because they appear on different backgrounds.

Thanks.

This message has been edited. Last edited by: Kerry,
 
Posts: 34 | Registered: June 19, 2007Report This Post
<JG>
posted
quote:
setDisplay(getDataText(0),true);
setDataTextPosition(getDataText(0),5);
setDisplay(getDataText(1),true);
setDataTextPosition(getDataText( 0),1);

looking at the code the obvious reason is that your 2nd setDataTextPosition is point to the wrong series

Automatic text coloring takes no account of background, if you want to change the colors then
you would have to code it via the API for each bar taking into account if you have an overlap
which would mean preprocessing and generating the required API code to include.

This message has been edited. Last edited by: <JG>,
 
Report This Post
Silver Member
posted Hide Post
Sorry about the typo, even after fixing it to
setDataTextPosition(getDataText(1),1);
it doesn't do the job.

setDisplay(getDataText(0),true);
setDataTextPosition(getDataText(0),5);

setDisplay() seems to work fine but not setDataTextPosition() for any values between 1-5.
 
Posts: 34 | Registered: June 19, 2007Report This Post
<JG>
posted
arsalan,

just rechecked to docs and what you are trying to do is not supported.

setDataTextPosition takes a single argument 0 to 5 and does not support the (getSeries(0),1) construct
If you run it without the error suppresion in the advanced graph assistant or in the old graph assistant
you will see the java error returned.

The only possible option is to play around with setDataTextRadius but I have not been able to get it to work.
 
Report This Post
Silver Member
posted Hide Post
I'll try with some other commands. Thanks for your help though.
 
Posts: 34 | Registered: June 19, 2007Report 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     [CLOSED] setDataTextPosition()

Copyright © 1996-2020 Information Builders