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 Format Rounding Issue
Go
New
Search
Notify
Tools
Reply
  
[CLOSED] Data Label Format Rounding Issue
 Login/Join
 
Platinum Member
posted
This seems simple, and I have read about customizing data label formats on the forum and in the documentation, but perhaps I am missing something.

Here is the snippet of code I'm working with:

setTextFormatPreset(getDataText(),-1);
setTextFormatPattern(getDataText(),"$#.#")

I'm using a custom format because I want to show my amounts that are in billions as $1.2B. The challenge is that I have several values a less than a billion. So, what AppStudio is currently doing to my graph is giving me $911.4M instead of $0.9B. Is there a way to add the decimal place? I've been reading about PresetNumberFormats. When I try to use preset value 10 or 11, I get $0B. That's definitely not what I need. Thoughts?

The graph fex is very small, so I want to keep the fix simple.

This message has been edited. Last edited by: FP Mod Chuck,


WebFocus 8.1.05M
AppStudio 8.1.05M

 
Posts: 111 | Registered: September 18, 2015Reply With QuoteReport This Post
Gold member
posted Hide Post
There is no straight forward way of doing it.
you can check the following post
Data Label workaround


WF 8.2.04
Windows/Unix
All Formats
In Focus since 2006
 
Posts: 74 | Location: UK | Registered: September 17, 2018Reply 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 Format Rounding Issue

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