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     [Sharing] New HTML5 Extension
Go
New
Search
Notify
Tools
Reply
  
[Sharing] New HTML5 Extension
 Login/Join
 
Expert
posted
For those of you who attended my session at Summit, I promised the publishing of the extension that we saw - com.ibi.divergent.

This is now available on the GitHub site https://github.com/ibi/wf-exte...er/com.ibi.divergent with the additions that we covered during the session.

This took a little longer than intended owing to request to add the chart header (title) and positioning of the legend (top or bottom only) - controlled from GUI options.

If you have any feedback, please provide this via GitHub only. Thank you.

T

This message has been edited. Last edited by: Tony A,



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.06 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
 
Posts: 5601 | Location: United Kingdom | Registered: April 08, 2004Reply With QuoteReport This Post
Guru
posted Hide Post
Good One

I wish I could have been at Summit to attend your session. Thanks for the new extension.


Hallway
WF(Prod):8202M
WF(Test):8202M
OS/Platform:Win 10
Outputs:All
 
Posts: 431 | Location: Salt Lake City, UT, USA | Registered: November 18, 2015Reply With QuoteReport This Post
Expert
posted Hide Post
Ditto with Summit.

Excellent job, chart examples look fantastic.

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


Waz...

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

 
Posts: 6104 | Location: Land of the Darug people, Terra Australis Incognita | Registered: October 31, 2006Reply With QuoteReport This Post
Expert
posted Hide Post
Thanks Gents, it would have been great to see you at Summit but I understand your restrictions.

T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.06 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
 
Posts: 5601 | Location: United Kingdom | Registered: April 08, 2004Reply With QuoteReport This Post
Expert
posted Hide Post
Incidentally, the DyGraph extension has recently had more properties added so it might be worth installing the recent update.


T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.06 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
 
Posts: 5601 | Location: United Kingdom | Registered: April 08, 2004Reply With QuoteReport This Post
Silver Member
posted Hide Post
Hi Tony,

Thanks for the extension. I am going to currently fork it to just accepts 3 since that how i want for my survey . Btw did you have find way to send to drill separate reports for separate measures. Webfocus extension seems to have a limitation where it considers all the measure as the same series .


Thanks,
Aswin Ravikumar


Webfocus 8.1
Windows x64
Excel
 
Posts: 39 | Location: Pittsburgh | Registered: July 25, 2017Reply With QuoteReport This Post
Expert
posted Hide Post
Aswin,

The donor code was from the same chart type on D3js.org and, if you had been at my session in Orlando, you would have heard me say that the same series was intended - I wanted to demonstrate the limitation having them in one series and trying to assign more than one colour.

As for having to fork it to your own needs, be my guest, but I would be inclined to firstly see if making the first and fifth replies as zero, changing their titles to blanks and the colours to white or even try transparent (using rgba).

I have just tried the latter and it works fine - it will save you having to mess with a fork!

T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.06 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
 
Posts: 5601 | Location: United Kingdom | Registered: April 08, 2004Reply With QuoteReport This Post
Expert
posted Hide Post
Hmmm, just noticed that your signature states 8.1 - I do hope that is wrong and that you haven't updated it!! Confused

Anyway, using my sample data,

GRAPH FILE likert_data
SUM COMPUTE DUMMY1/D12.2 MISSING ON =0; AS ' '
LIKERT_DATA.SEG01.STRONGDISAGREE AS 'Disagree'
LIKERT_DATA.SEG01.NEITHER AS 'Neutral'
LIKERT_DATA.SEG01.STRONGAGREE AS 'Agree'
COMPUTE DUMMY2/D12.2 MISSING ON =0; AS ' '
BY LIKERT_DATA.SEG01.Q_NUM NOPRINT
BY LIKERT_DATA.SEG01.QUESTION
WHERE LIKERT_DATA.SEG01.SOURCE EQ 'Sample 2';
ON GRAPH PCHOLD FORMAT JSCHART
ON GRAPH SET VZERO OFF
ON GRAPH SET GRWIDTH 1
ON GRAPH SET LOOKGRAPH EXTENSION
ON GRAPH SET AUTOFIT ON
ON GRAPH SET STYLE *
*GRAPH_SCRIPT
setPieDepth(0);
setPieTilt(0);
setDepthRadius(0); 
setPlace(true); 
setCurveFitEquationDisplay(false); 
*END
INCLUDE=IBFS:/FILE/IBI_HTML_DIR/ibi_themes/Warm.sty,$
TYPE=REPORT, PAGESIZE=A4, $
TYPE=DATA, COLUMN=N1, BUCKET= >Question, $
TYPE=DATA, COLUMN=N2, BUCKET= >Question, $
TYPE=DATA, COLUMN=N3, BUCKET= >replies, $
TYPE=DATA, COLUMN=N4, BUCKET= >replies, $
TYPE=DATA, COLUMN=N5, BUCKET= >replies, $
TYPE=DATA, COLUMN=N6, BUCKET= >replies, $
TYPE=DATA, COLUMN=N7, BUCKET= >replies, $
*GRAPH_SCRIPT
setReportParsingErrors(false);
setSelectionEnableMove(false);
*GRAPH_JS_FINAL
"extensions": {
    "com.ibi.divergent": {
        "useSeriesColours": false,
        "colors": ["rgba(255,255,255,0)", "#f6a580", "#cccccc", "#92c6db", "#ffffff"]
    }
},
"pieProperties": {
    "holeSize": "0%"
},
"chartType": "com.ibi.divergent",
"agnosticSettings": {
    "chartTypeFullName": "com.ibi.divergent"
}
*END
ENDSTYLE
END


T

This message has been edited. Last edited by: Tony A,



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.06 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
 
Posts: 5601 | Location: United Kingdom | Registered: April 08, 2004Reply With QuoteReport This Post
Expert
posted Hide Post
Thanks Tony,

I was at that sessions and it was excellent!

I knew that We Can Do That in WebFOCUS!

Doug


   In FOCUS Since 1983 ~ from FOCUS to WebFOCUS.
   Most recent: 8204 Gen 48 in Test and Production.
   Currently Available. Please contact me.
 
Posts: 2976 | Location: Middle Tennessee [8204M Gen48 in Test&Prod] | Registered: February 23, 2005Reply With QuoteReport This Post
Silver Member
posted Hide Post
quote:
Originally posted by Tony A:
Hmmm, just noticed that your signature states 8.1 - I do hope that is wrong and that you haven't updated it!! Confused

We are still in the migration phase where generate excel from 8105 and dashboards/charts from 8205. Wink

GRAPH FILE likert_data
SUM COMPUTE DUMMY1/D12.2 MISSING ON =0; AS ' '
LIKERT_DATA.SEG01.STRONGDISAGREE AS 'Disagree'
LIKERT_DATA.SEG01.NEITHER AS 'Neutral'
LIKERT_DATA.SEG01.STRONGAGREE AS 'Agree'
COMPUTE DUMMY2/D12.2 MISSING ON =0; AS ' '
BY LIKERT_DATA.SEG01.Q_NUM NOPRINT
BY LIKERT_DATA.SEG01.QUESTION
WHERE LIKERT_DATA.SEG01.SOURCE EQ 'Sample 2';
ON GRAPH PCHOLD FORMAT JSCHART
ON GRAPH SET VZERO OFF
ON GRAPH SET GRWIDTH 1
ON GRAPH SET LOOKGRAPH EXTENSION
ON GRAPH SET AUTOFIT ON
ON GRAPH SET STYLE *
*GRAPH_SCRIPT
setPieDepth(0);
setPieTilt(0);
setDepthRadius(0); 
setPlace(true); 
setCurveFitEquationDisplay(false); 
*END
INCLUDE=IBFS:/FILE/IBI_HTML_DIR/ibi_themes/Warm.sty,$
TYPE=REPORT, PAGESIZE=A4, $
TYPE=DATA, COLUMN=N1, BUCKET= >Question, $
TYPE=DATA, COLUMN=N2, BUCKET= >Question, $
TYPE=DATA, COLUMN=N3, BUCKET= >replies, $
TYPE=DATA, COLUMN=N4, BUCKET= >replies, $
TYPE=DATA, COLUMN=N5, BUCKET= >replies, $
TYPE=DATA, COLUMN=N6, BUCKET= >replies, $
TYPE=DATA, COLUMN=N7, BUCKET= >replies, $
*GRAPH_SCRIPT
setReportParsingErrors(false);
setSelectionEnableMove(false);
*GRAPH_JS_FINAL
"extensions": {
    "com.ibi.divergent": {
        "useSeriesColours": false,
        "colors": ["rgba(255,255,255,0)", "#f6a580", "#cccccc", "#92c6db", "#ffffff"]
    }
},
"pieProperties": {
    "holeSize": "0%"
},
"chartType": "com.ibi.divergent",
"agnosticSettings": {
    "chartTypeFullName": "com.ibi.divergent"
}
*END
ENDSTYLE
END


Thanks for the code Tony. It works the way i wanted. I couldn't attend summit this year, but is there any way we could get around with the single series limitation ? . I build a versions of KPI charts where it accepts multiple rows of supporting measures ( Sample Image ) . Users wants to click on each measure to get different report outputs based on the measure they click and I can only provide one drill for the entire kpi.

Wish we had a proper documentation on moonbeans api.

Thanks,
Aswin Ravikumar


Webfocus 8.1
Windows x64
Excel
 
Posts: 39 | Location: Pittsburgh | Registered: July 25, 2017Reply With QuoteReport This Post
Expert
posted Hide Post
Hi Aswin,

If I read your response correctly, you have 2 questions/requests -

  • Modification of Divergent to have 5 individual "reply" buckets rather than just the 1 it has been built with.
  • How-to add drilldown links into your version of the KPI extension.


If I have those correct then then first would require some thought and effort. What is your specific issue with only 1 bucket?

The second would need knowledge of the KPI extension that you are using (also, which one did you start with - I am guessing kpi_table?).

Neither of these are something that my current / upcoming work duties allow me Frowner

I did add drilldown potential to com.ibi.dendrorag which is configurable within the properties.json file. You could use that as an example to derive how you need to extend your code. It should not be too onerous (I think) as the KPI_table extension essentially creates an HTML table.

Good luck

T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.06 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
 
Posts: 5601 | Location: United Kingdom | Registered: April 08, 2004Reply With QuoteReport This Post
Silver Member
posted Hide Post
quote:

  • Modification of Divergent to have 5 individual "reply" buckets rather than just the 1 it has been built with.
  • How-to add drilldown links into your version of the KPI extension.


Yes i used the KPI Table to create this extension and I am actually good with having just one bucket.I am able to create drill down in my extension but not able to have different drills for different measures, i.e I am not able pass which measure i clicked in an parameter to the targeted report.

Thanks,
Aswin Ravikumar


Webfocus 8.1
Windows x64
Excel
 
Posts: 39 | Location: Pittsburgh | Registered: July 25, 2017Reply With QuoteReport This Post
Expert
posted Hide Post
Can you send me a link to download your extension zip file?

If so then please Send it via PM only

T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.06 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
 
Posts: 5601 | Location: United Kingdom | Registered: April 08, 2004Reply With QuoteReport This Post
  Powered by Social Strata  
 

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [Sharing] New HTML5 Extension

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