hi, i want to use heat map graphs in building reports with webFocus. can we use heat maps in webFocus 8? anything that can help would be much appreciated!This message has been edited. Last edited by: <Emily McAllister>,
WebFOCUS 7.67 & WebFOCUS 80 windows
August 08, 2016, 02:50 AM
Tony A
Once again the online documentation has this information - link
Also, a quick search on the forum will provide you with previous questions and answers.
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
August 08, 2016, 09:40 AM
GavinL
quote:
i want to use heat map graphs in building reports with webFocus. can we use heat maps in webFocus 8?
Answer is yes.
Simple example.
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';
DEFINE FILE ggsales
MONTHYEAR/MY=GGSALES.SALES01.DATE;
END
GRAPH FILE ggsales
SUM GGSALES.SALES01.DOLLARS
BY GGSALES.SALES01.REGION AS 'Region'
ACROSS MONTHYEAR AS 'Month/Year'
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 2
ON GRAPH SET LOOKGRAPH SPECTRAL
ON GRAPH SET AUTOFIT ON
ON GRAPH SET STYLE *
*GRAPH_SCRIPT
setPieDepth(0);
setPieTilt(0);
setDepthRadius(0);
setCurveFitEquationDisplay(false);
setPlace(true);
setDataTextPosition(4);
*END
INCLUDE=IBFS:/FILE/IBI_HTML_DIR/javaassist/intl/EN/ENIADefault_combine.sty,$
TYPE=REPORT, TITLETEXT=&WF_TITLE.QUOTEDSTRING, $
*GRAPH_SCRIPT
setReportParsingErrors(false);
setSelectionEnableMove(false);
*END
ENDSTYLE
END
-RUN
- FOCUS Man, just FOCUS! ----------------------------- Product: WebFOCUS Version: 8.1.04 Server: Windows 2008 Server
August 10, 2016, 05:24 AM
FRA-Sarwar
Thank You very much, i want to change the format to svg in order to include this svg formatted image to multiple reports (as per my company's request) but when i do the colors get changed (not red and green anymore) how can i change the colors back to red and green? i mean how to change the colors of heat map graph by my choice
Thanks,
WebFOCUS 7.67 & WebFOCUS 80 windows
August 10, 2016, 05:37 AM
Kofi
Check document and this be found, if just look. Add to Gavin sample and you see -
Client Server 8.1.05: Apache; Tomcat;Windows Server 2012 Reporting Server 8.1.05; Oracle; MS SQL; Windows Server 2012
August 10, 2016, 05:42 AM
Tony A
Kofi beat me to it! If you look at the documentation link that I gave above, and entered "heatmap" in the search box then you would have found what you needed as the first entry is for "colorScale".
Keep the link that I gave above in your browser favorites as it will prove useful many times.
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
August 11, 2016, 12:55 AM
FRA-Sarwar
thank you, now I can change the colors but it doesn't apply to the SVG formatted version it only applies to the JSCHART forma, the question is how to apply this color changes to ON GRAPH SAVE AS IMAGE1 FORMAT SVG ? OR how to change JSCHART format to SVG format in order to print the chart in pdf format?This message has been edited. Last edited by: FRA-Sarwar,
WebFOCUS 7.67 & WebFOCUS 80 windows
August 12, 2016, 12:21 PM
GavinL
Compound Reports, don't think SVG is required for charts in PDFs.
- FOCUS Man, just FOCUS! ----------------------------- Product: WebFOCUS Version: 8.1.04 Server: Windows 2008 Server
August 13, 2016, 11:47 PM
FRA-Sarwar
no the requirement is changing the jschart to SVG! is there any way to do that?