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] how to add multiple legends in a bargraph and mouse hover with proper values

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] how to add multiple legends in a bargraph and mouse hover with proper values
 Login/Join
 
Guru
posted
Hi,

Iam creating a graph using the ACCEL as the measure(Y axis) and all other 3 fields as dimensions(COUNTRY,CAR AND MODEL) on the X axis using the GUI...
But Iam getting only 1 legend i.e.,as series 0 but I need the legends as follows along with the color coding :
1st with the gray color if accel is less than 10 and 2nd for the accel greater than 30 in green color and the 3rd legend for accel equal to 13 in orange color.

Also once I hover the mouse on any of the graph, I get it as
Series 0,ENGLAND>JENSEN>INTERCEPTOR III;8 but I need the format to be as
Legend name - Countryname - carname - modelname : accelvalue

This is the graph code which Iam using :

-*IA_GRAPH_BEGIN
-*Do not delete or modify the comments below
*-INTERNAL_COMMENT LINE#0$PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+DQo8IS0tMS4wLS0+DQo8Um9vdCB2ZXJzaW9uPSIxLjAiPg0KICAgIDxPYmplY3Qgb2JqZWN0SWQ9IkNoYXJ0XzEiPg0KICAgICAgICA8UHJvcGVydH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T CACHE SET ON
-DEFAULTH &WF_STYLE_UNITS='PIXELS';
-DEFAULTH &WF_STYLE_HEIGHT='405.0';
-DEFAULTH &WF_STYLE_WIDTH='770.0';
-DEFAULTH &WF_TITLE='WebFOCUS Report';
GRAPH FILE CAR
-* Created by Info Assist for Graph
SUM CAR.SPECS.ACCEL AS 'Series0'
BY CAR.ORIGIN.COUNTRY
BY CAR.COMP.CAR
BY CAR.CARREC.MODEL
ON GRAPH PCHOLD FORMAT JSCHART
ON GRAPH SET VZERO OFF
ON GRAPH SET HTMLENCODE ON
ON GRAPH SET GRAPHDEFAULT OFF
ON GRAPH SET GRWIDTH 1
ON GRAPH SET UNITS &WF_STYLE_UNITS
ON GRAPH SET HAXIS &WF_STYLE_WIDTH
ON GRAPH SET VAXIS &WF_STYLE_HEIGHT
ON GRAPH SET GRMERGE ADVANCED
ON GRAPH SET GRMULTIGRAPH 0
ON GRAPH SET GRLEGEND 0
ON GRAPH SET GRXAXIS 3
ON GRAPH SET LOOKGRAPH VBAR
ON GRAPH SET AUTOFIT ON
ON GRAPH SET STYLE *
*GRAPH_SCRIPT
setPieDepth(0);
setPieTilt(0);
setDepthRadius(0); 
setCurveFitEquationDisplay(false); 
setPlace(true); 
*END
INCLUDE=IBFS:/FILE/IBI_HTML_DIR/javaassist/intl/EN/ENIADefault_combine.sty,$
DEFMACRO=Condition_1, MACTYPE=RULE, WHEN=N4 LT 10, $
DEFMACRO=Condition_2, MACTYPE=RULE, WHEN=N4 GT 30, $
DEFMACRO=Condition_3, MACTYPE=RULE, WHEN=N4 EQ 13, $
TYPE=REPORT, TITLETEXT=&WF_TITLE.QUOTEDSTRING, $
TYPE=DATA, COLUMN=N4, MACRO=Condition_1, COLOR=RGB(128 128 128), $
TYPE=DATA, COLUMN=N4, MACRO=Condition_2, COLOR=RGB(64 128 128), $
TYPE=DATA, COLUMN=N4, MACRO=Condition_3, COLOR=RGB(255 128 0), $
*GRAPH_SCRIPT
setReportParsingErrors(false);
setSelectionEnableMove(false);
setDisplay(getO1Label(),false);
setSeriesType(0,1);
setDisplay(getLegendArea(),true);
*END
ENDSTYLE
END
-RUN
 
-*IA_GRAPH_FINISH  


Also to get multiple legend's,I tried adding these lines but nothing seems to be working and also any ideas on how to get the desired mouse hover values as well?
*GRAPH_JS
series: [
{series: 0, color: RGB(128 128 128)},
{series: 1, color: RGB(64 128 128)},
{series: 2, color: RGB(255 128 0),}
]
*END

Please let me know what am I doing wrong.

Thanks a lot in advance for all your help.

Regards,
IP

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


Webfocus 8105 Developer studio,Windows 7,HTML,Excel,PDF,Text,Infoassist,Graph,AHTML
 
Posts: 270 | Registered: October 30, 2014Report This Post
Platinum Member
posted Hide Post
Hi,

Please Try This,

-*IA_GRAPH_BEGIN
-*Do not delete or modify the comments below
*-INTERNAL_COMMENT LINE#0$PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+DQo8IS0tMS4wLS0+PFJvb3QgdmVyc2lvbj0iMS4xIj4NCiAgICA8T2JqZWN0IG9iamVjdElkPSJDaGFydF8xIj4NCiAgICAgICAgPFByb3BlcnR5IG5hbWU9IkxpbmtlZFNvcnRzIiB0eXBlPSJqYXZhLmxhbmcuU3RyaW5nIi8+DQogICAgPC9PYmplY3Q+DQogICAgPE9iamVjdCBvYmplY3RJZD0iR0xPQkFMIj4NCiAgICAgICAgPFByb3BlcnR5IG5hbWU9IlNhbXBsZURhdGEiIHR5cGU9ImphdmEubGFuZy5Cb29sZWFuIj5mYWxzZTwvUHJvcGVydHk+DQogICAgICAgIDxQcm9wZXJ0eSBuYW1lPSJHbG9iYWxSZWNvcmRMaW1pdCIgdHlwZT0iamF2YS5sYW5nLlN0cmluZyI+NTAwPC9Qcm9wZXJ0eT4NCiAgICAgICAgPFByb3BlcnR5IG5hbWU9Ikdsb2JhbFJ1blJlY29yZExpbWl0IiB0eXBlPSJqYXZhLmxhbmcuU3RyaW5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9wZXJ0eT4NCiAgICAg
*-INTERNAL_COMMENT LINE#1$ICAgPFByb3BlcnR5IG5hbWU9ImNhc2NhZGVOYW1lcyIgdHlwZT0iTWFwIi8+DQogICAgICAgIDxQcm9wZXJ0eSBuYW1lPSJNYXN0ZXJfRmlsZXMiIHR5cGU9IlNldCI+DQogICAgICAgICAgICA8RW50cnkgdHlwZT0iamF2YS5sYW5nLlN0cmluZyI+Y2FyPC9FbnRyeT4NCiAgICAgICAgPC9Qcm9wZXJ0eT4NCiAgICAgICAgPFByb3BlcnR5IG5hbWU9Im1ldGFkYXRhVmlld0FzIiB0eXBlPSJNYXAiPg0KICAgICAgICAgICAgPEVudHJ5IGtleT0iY2FyIiB0eXBlPSJqYXZhLmxhbmcuU3RyaW5nIj5EaW1lbnNpb25UcmVlPC9FbnRyeT4NCiAgICAgICAgPC9Qcm9wZXJ0eT4NCiAgICAgICAgPFByb3BlcnR5IG5hbWU9ImVuYWJsZVByZXZpZXciIHR5cGU9ImphdmEubGFuZy5Cb29sZWFuIj50cnVlPC9Qcm9wZXJ0eT4NCiAgICA8L09iamVjdD4NCjwvUm9vdD4NCg==
-*Do not delete or modify the comments above
ENGINE INT CACHE SET ON
-DEFAULTH &WF_STYLE_UNITS='PIXELS';
-DEFAULTH &WF_STYLE_HEIGHT='405.0';
-DEFAULTH &WF_STYLE_WIDTH='770.0';
-DEFAULTH &WF_TITLE='WebFOCUS Report';
GRAPH FILE car
-* Created by Info Assist for Graph
SUM CAR.SPECS.ACCEL
BY CAR.ORIGIN.COUNTRY
BY CAR.COMP.CAR
BY CAR.CARREC.MODEL
ON GRAPH PCHOLD FORMAT JSCHART
ON GRAPH SET VZERO OFF
ON GRAPH SET HTMLENCODE ON
ON GRAPH SET GRAPHDEFAULT OFF
ON GRAPH SET UNITS &WF_STYLE_UNITS
ON GRAPH SET HAXIS &WF_STYLE_WIDTH
ON GRAPH SET VAXIS &WF_STYLE_HEIGHT
ON GRAPH SET GRMERGE ADVANCED
ON GRAPH SET GRMULTIGRAPH 0
ON GRAPH SET GRLEGEND 0
ON GRAPH SET GRXAXIS 3
ON GRAPH SET LOOKGRAPH VBAR
ON GRAPH SET AUTOFIT ON
ON GRAPH SET STYLE *
*GRAPH_SCRIPT
setPieDepth(0);
setPieTilt(0);
setDepthRadius(0);
setCurveFitEquationDisplay(false);
setPlace(true);
*END
INCLUDE=endeflt.sty,$
DEFMACRO=Condition_1, MACTYPE=RULE, WHEN=N4 LT 10, $
DEFMACRO=Condition_2, MACTYPE=RULE, WHEN=N4 GT 30, $
DEFMACRO=Condition_3, MACTYPE=RULE, WHEN=N4 EQ 13, $
TYPE=REPORT, TITLETEXT=&WF_TITLE.QUOTEDSTRING, $
TYPE=DATA, COLUMN=N4, MACRO=Condition_1, COLOR=RGB(128 128 128), $
TYPE=DATA, COLUMN=N4, MACRO=Condition_2, COLOR=RGB(64 128 128), $
TYPE=DATA, COLUMN=N4, MACRO=Condition_3, COLOR=RGB(255 128 0), $
*GRAPH_SCRIPT
setReportParsingErrors(false);
setSelectionEnableMove(false);
setDisplay(getO1AxisLine(),false);
setTextString(getO1Title(),"COUNTRY:CAR:MODEL");
setDisplay(getO1Label(),false);
*END
*GRAPH_JS
series: [
{ "series": 'reset',
"tooltip": function(d,s,g){
var strGroup = this.getGroupLabel(g);
var arrGroup = strGroup.split('>');
return "ACCEL-" +arrGroup[0].trim()+'-'+arrGroup[1].trim()+'-'+arrGroup[2].trim()+':'+ this.formatNumber(d, '#,#')+ '
';
}
},
]
*END
ENDSTYLE
END
-RUN

-*IA_GRAPH_FINISH


WF Production :- WF:8.0.0.4, 8.1.05 App-studio/Developer Studio(8.1.x) ,
8.2.0.1M , 8.2.0.2 (App-Studio8.2.x),
InfoAssist/+, InfoDiscovery
Output format:-AHTML, PDF, Excel, HTML
Platform:-Windows 7, 8,10
 
Posts: 186 | Location: Infobuild India | Registered: August 28, 2015Report This Post
Guru
posted Hide Post
Hi,

Chaudhary - When I add these lines to my code,nothing is getting displayed on the report.

  *GRAPH_JS 
series: [
{ "series": 'reset',
	"tooltip": function(d,s,g){
	var strGroup = this.getGroupLabel(g);
	var arrGroup = strGroup.split('>');
 return "ACCEL-" +arrGroup[0].trim()+'-'+arrGroup[1].trim()+'-'+arrGroup[2].trim()+':'+ this.formatNumber(d, '#,#')+ '
';
 }
 },
]
*END 


Please let me know if something is wrong with what Iam doing?

Regards,
IP


Webfocus 8105 Developer studio,Windows 7,HTML,Excel,PDF,Text,Infoassist,Graph,AHTML
 
Posts: 270 | Registered: October 30, 2014Report This Post
Expert
posted Hide Post
*GRAPH_JS
might have to begin in column one...


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Guru
posted Hide Post
Hi,

Francis - I have included the *GRAPH_JS in the column one itself but when I run the report, nothing is getting displayed.

Could you/anyone please let me know what is wrong.

Regards,
IP


Webfocus 8105 Developer studio,Windows 7,HTML,Excel,PDF,Text,Infoassist,Graph,AHTML
 
Posts: 270 | Registered: October 30, 2014Report This Post
Virtuoso
posted Hide Post
Info4pal

I suggest you open a case on this. I am not a javascript expert but I am experiencing the same as you with no results displayed with that code in place.

Thanks,


Thank you for using Focal Point!

Chuck Wolff - Focal Point Moderator
WebFOCUS 7x and 8x, Windows, Linux All output Formats
 
Posts: 2127 | Location: Customer Support | Registered: April 12, 2005Report This Post
Platinum Member
posted Hide Post
Hi Info4Pal ,

sorry for delay,

above code will work , the problem was when posting code "';" moved to new line ,

Try below mentioned code .

quote:
*GRAPH_JS
series: [
{ "series": 'reset',
"tooltip": function(d,s,g){
var strGroup = this.getGroupLabel(g);
var arrGroup = strGroup.split('>');
return "ACCEL-" +arrGroup[0].trim()+'-'+arrGroup[1].trim()+'-'+arrGroup[2].trim()+':'+ this.formatNumber(d, '#,#')+ '';
}
},
]
*END


WF Production :- WF:8.0.0.4, 8.1.05 App-studio/Developer Studio(8.1.x) ,
8.2.0.1M , 8.2.0.2 (App-Studio8.2.x),
InfoAssist/+, InfoDiscovery
Output format:-AHTML, PDF, Excel, HTML
Platform:-Windows 7, 8,10
 
Posts: 186 | Location: Infobuild India | Registered: August 28, 2015Report This Post
Guru
posted Hide Post
Hi,

Chaudhary - Still I dint get the report and as Chuck suggests,I will open a case with the IBI.
Thanks a lot again for all your help!

Regards,
IP


Webfocus 8105 Developer studio,Windows 7,HTML,Excel,PDF,Text,Infoassist,Graph,AHTML
 
Posts: 270 | Registered: October 30, 2014Report 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] how to add multiple legends in a bargraph and mouse hover with proper values

Copyright © 1996-2020 Information Builders