Focal Point
[CLOSED]Changing DataText format

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/3807076286

June 06, 2016, 02:56 PM
CuriousDev
[CLOSED]Changing DataText format
I plotted dual axis line bar graph(1 series is bar other is connected line).I am facing problem while changing datatext format for one of the series.Used 2 ways to do it

1.Using graph tool- i tried changing datatext format for line series to '%' but it changes for both the series instead of one.

2. Text Editor(Referred Graph API)- Below code from API doesn't work for me.
setTextFormatPreset(getDataText (1), 6);
setTextFormatPreset(getDataText (0), 2);
setDataTextDisplay (true);

Please help me solving this issue.

This message has been edited. Last edited by: <Emily McAllister>,


WebFOCUS 8
Windows, All Outputs
June 09, 2016, 04:47 PM
Tamra
CuriousDev,

Try replacing your posted code with the following:

setDisplay(getDataText(0), false); // Hide data text for series 0
setDisplay(getDataText(1), true); // Show data text for series 1

Thank you for participating in the Focal Point Forum.

Kindest regards,
Tamra Colangelo
Focal Point Moderator - Information Builders Inc.


WebFOCUS 8x - BI Portal, Developer Studio, App Studio, Excel, PDF, Active Formats and HTML5
June 13, 2016, 04:19 PM
CuriousDev
I don't want to hide series 0.Both the series should be displayed on the graph.
1.series 0 should show amount with $ symbol
2.Series 1 should show percent value with % symbol


Thank you


WebFOCUS 8
Windows, All Outputs
June 14, 2016, 09:45 AM
Doug
So, are the dates in-sync between the two series? If so, use only one of them and the two values which are common between those dates.
June 24, 2016, 03:41 PM
Doug
How'd this work out for you?