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     [SOLVED] Embedding WebFOCUS Sparkline Chart

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Embedding WebFOCUS Sparkline Chart
 Login/Join
 
Member
posted
Does anyone have an example of how the WebFOCUS provided sparkline chart can be embedded in a table or text?

The documentation says it can but doesn't provide an example.

Thanks in advance.

This message has been edited. Last edited by: FP Mod Chuck,
 
Posts: 2 | Registered: November 29, 2018Report This Post
Expert
posted Hide Post
Hi Ben, and welcome to FP.

Example code using GGSALES sample data
EMBED BEGIN PCHOLD FORMAT HTML
EMBED COMPONENT AS SPARK
DEFINE FILE GGSALES
  YEAR/YY = DATE;
END
GRAPH FILE GGSALES
SUM DOLLARS AS ''
BY CATEGORY AS ''
BY PRODUCT AS ''
ACROSS DATE AS ''
WHERE YEAR EQ 1997
ON GRAPH PCHOLD AS SPARK FORMAT JSCHART
ON GRAPH SET LOOKGRAPH BAR
ON GRAPH SET HAXIS 200
ON GRAPH SET VAXIS 50
ON GRAPH SET GRMERGE ADVANCED
ON GRAPH SET GRMULTIGRAPH 2
ON GRAPH SET GRLEGEND 0
ON GRAPH SET GRXAXIS 1
ON GRAPH SET STYLE *
*GRAPH_JS
chartType: 'sparkline',
title: {visible: false},
xaxis: {
    majorGrid: {
                   visible: false
    }
},
yaxis: {
    majorGrid: {
                   visible: false
    }
},
border: {width: 0},
blaProperties:{ lineConnection: 'curved'},
END

EMBED MAIN
TABLE FILE GGSALES
SUM DOLLARS
COMPUTE SparkLine/A1=' ';
BY CATEGORY
BY PRODUCT
ON TABLE PCHOLD FORMAT HTML
ON TABLE SET HTMLCSS ON
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE SET STYLE *
type=report, border=light, $
type=data, column=SparkLine, embed=spark, size=3, $
END
EMBED END
-RUN


T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
 
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004Report This Post
Member
posted Hide Post
Awesome! Works like a charm. Is this documented anywhere?
 
Posts: 2 | Registered: November 29, 2018Report This Post
Virtuoso
posted Hide Post
Hi Tony,
Very nice. One learns something every day!
As Ben asks: where is the documentation.


Daniel
In Focus since 1982
wf 8.202M/Win10/IIS/SSA - WrapApp Front End for WF

 
Posts: 1980 | Location: Tel Aviv, Israel | Registered: March 23, 2006Report This Post
Expert
posted Hide Post
quote:
EMBED MAIN

Excellent Tony... Excellent (As expected)




   In FOCUS Since 1983 ~ from FOCUS to WebFOCUS.
   Current: WebFOCUS Administrator at FIS Worldpay | 8204, 8206
 
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 2005Report 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     [SOLVED] Embedding WebFOCUS Sparkline Chart

Copyright © 1996-2020 Information Builders