Focal Point Banner
Community Center Education Summit Technical Support User Groups
Let's Get Social!

Facebook Twitter LinkedIn YouTube
Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED]Data Label color above reference line
Go
New
Search
Notify
Tools
Reply
  
[CLOSED]Data Label color above reference line
 Login/Join
 
Platinum Member
posted
Is there a way to change the color of a data label on a bar chart when it is above the value of a reference line?

Thanks.

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


WebFOCUS 8.2.03 (production), 8.2.06 (testing)
AppStudio, InfoAssist
Windows, All Outputs
 
Posts: 156 | Location: Indiana | Registered: December 05, 2017Reply With QuoteReport This Post
Expert
posted Hide Post
Possibly, what is the format of the chart ?


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.06OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Know The Code

 
Posts: 6208 | Location: 33.8688° S, 151.2093° E | Registered: October 31, 2006Reply With QuoteReport This Post
Platinum Member
posted Hide Post
I'm using *GRAPH_SCRIPT to format it. This is part of a compound PDF I inherited.


WebFOCUS 8.2.03 (production), 8.2.06 (testing)
AppStudio, InfoAssist
Windows, All Outputs
 
Posts: 156 | Location: Indiana | Registered: December 05, 2017Reply With QuoteReport This Post
Expert
posted Hide Post
How about using:
setFillColor(getDataText(),new Color(255,0,0));
in the "*GRAPH_SCRIPT" block?
 
Posts: 3052 | Location: Middle Tennessee [8204M Gen48 in Test&Prod] | Registered: February 23, 2005Reply With QuoteReport This Post
Expert
posted Hide Post
Or, you could use the following, if you have multiple series:
setFillColor(getDataText(0), new Color(0,0,255));
setFillColor(getDataText(1), new Color(0,155,127));
setFillColor(getDataText(2), new Color(0,255,64));
setFillColor(getDataText(3), new Color(255,128,0));
setFillColor(getDataText(4), new Color(255,0,0));
 
Posts: 3052 | Location: Middle Tennessee [8204M Gen48 in Test&Prod] | Registered: February 23, 2005Reply With QuoteReport This Post
Platinum Member
posted Hide Post
@Doug - that changes all the values to red, not just the ones over the reference line.


WebFOCUS 8.2.03 (production), 8.2.06 (testing)
AppStudio, InfoAssist
Windows, All Outputs
 
Posts: 156 | Location: Indiana | Registered: December 05, 2017Reply With QuoteReport This Post
Expert
posted Hide Post
You could use a stacked bar chart and calculate the vales, and colors, based on the value of the reference line. A bit complex, but doable.

Or, calculate / use the colors as used in my 14:05 based on the comparison to the value of the reference line.
 
Posts: 3052 | Location: Middle Tennessee [8204M Gen48 in Test&Prod] | Registered: February 23, 2005Reply With QuoteReport This Post
Platinum Member
posted Hide Post
@Doug,
Thanks. I was hoping for something relatively simple. Guess I should have known better. Razzer


WebFOCUS 8.2.03 (production), 8.2.06 (testing)
AppStudio, InfoAssist
Windows, All Outputs
 
Posts: 156 | Location: Indiana | Registered: December 05, 2017Reply With QuoteReport This Post
Expert
posted Hide Post
quote:
I was hoping for something relatively simple. Guess I should have known better.

Yeah, don't we all?
 
Posts: 3052 | Location: Middle Tennessee [8204M Gen48 in Test&Prod] | Registered: February 23, 2005Reply With QuoteReport This Post
Platinum Member
posted Hide Post
Big Grin


WebFOCUS 8.2.03 (production), 8.2.06 (testing)
AppStudio, InfoAssist
Windows, All Outputs
 
Posts: 156 | Location: Indiana | Registered: December 05, 2017Reply With QuoteReport This Post
  Powered by Social Strata  
 

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED]Data Label color above reference line

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