Does WebFocus 8 offer what is described to me as a heat chart.
We are open to other formats but the sample shown to us displays the last 6 months by name. Each month appears as a grid showing Sun - Sat and every day of the month. The day has varying colors from green to red representing sales volumes. The 'redder' the 'day' the more the sales for that day. You could see in the sample that Wednesdays were the best days for sales over the past 6 months.
I did see a 'tag clound' chart that illustrates via word size...not really what we want.
Are there 'heat charts' available? What does wf call them? Where are they? If there is doc on this, I can not find it nor did I see any helpfull posts...
as always, Thanks!This message has been edited. Last edited by: RobertF,
WebFOCUS 8206.08 Windows, All Outputs
September 24, 2015, 03:23 AM
Tony A
Hi Robert,
It might be "Spectral"?
Go to Format / [Chart Types] Other / Special and the last one is Spectral.
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
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2
WebFOCUS App Studio 8.2.06 standalone on Windows 10
September 24, 2015, 01:00 PM
J.L. Hinds
I think tree map may be what you seek.
WebFOCUS 7.6 Windows, All Outputs
September 24, 2015, 04:32 PM
RobertF
Tree Map?
I will look at the Spectral again but I do not see man option in WF for that one. But yes, show heat on the days where activity was high....
WebFOCUS 8206.08 Windows, All Outputs
September 24, 2015, 04:48 PM
J.L. Hinds
This was from someone else's post.
JOIN STCD IN GGSALES TO STORE_CODE IN GGSTORES AS J1 DEFINE FILE GGSALES PROFIT/D12.2= DOLLARS-BUDDOLLARS ; END GRAPH FILE GGSALES SUM PROFIT UNITS BY ST BY PRODUCT ON GRAPH PCHOLD FORMAT JSCHART ON GRAPH SET LOOKGRAPH TREEMAP ON GRAPH SET STYLE * *GRAPH_JS colorMode:'byInterpolation', colorModecolors: ['teal','cyan', 'beige', 'burlywood', 'yellow', 'cream'] *END ENDSTYLE END
WebFOCUS 7.6 Windows, All Outputs
September 24, 2015, 09:04 PM
David Briars
quote:
Are there 'heat charts' available? What does wf call them? Where are they?
In WF 8 Heat Maps are available as an HTML5 chart type.
Another name for 'Heat Maps' is 'Spectral Maps'; WF uses the later name.
If your requirements are something like: "Visualize Sales by week across day of the week; colors should be based upon the value of the cell", then this example might help.
Most of the code creates the test data, and isn't part of the technique. :-)
-* File ExHeatMap.fex
APP PREPENDPATH IBISAMP
SET WEEKFIRST = ISO
-RUN
-*
-* Create a test file, using the GGSALES sample database.
-*
DEFINE FILE GGSALES
SALESDATE_YYMD/YYMD = DECODE PRODUCT ('Biscotti' '20151005'
'Capuccino' '20151006'
'Coffee Grinder' '20151007'
'Coffee Pot' '20151008'
'Croissant' '20151009'
'Espresso' '20151012'
'Latte' '20151013'
'Mug' '20151014'
'Scone' '20151015'
'Thermos' '20151016');
-* Get the day of the week for this Sales Date.
SALESDATE_W/W = SALESDATE_YYMD;
SALESDATE_WR/wr = SALESDATE_YYMD;
-* Get the week number for this Sales Date.
SALESDATE_HYYMDS/HYYMDS= HDTTM(SALESDATE_YYMD, 8, 'HYYMDS');
WEEKNUMBER/I2 = HPART(SALESDATE_HYYMDS,'WEEK','I2');
WEEKNUMBER_YAXIS/A12 = 'Week: ' | EDIT(WEEKNUMBER);
-* Create Sales Dollars with at least some dispersion.
WKDOLLARS/D12.2 = IF ((WEEKNUMBER EQ 41) AND (SALESDATE_W EQ 1)) THEN DOLLARS * 1.1 ELSE
IF ((WEEKNUMBER EQ 41) AND (SALESDATE_W EQ 2)) THEN DOLLARS * 1.2 ELSE
IF ((WEEKNUMBER EQ 41) AND (SALESDATE_W EQ 3)) THEN DOLLARS * 5.3 ELSE
IF ((WEEKNUMBER EQ 41) AND (SALESDATE_W EQ 4)) THEN DOLLARS * 4.3 ELSE
IF ((WEEKNUMBER EQ 42) AND (SALESDATE_W EQ 5)) THEN DOLLARS * 1.9 ELSE
IF ((WEEKNUMBER EQ 42) AND (SALESDATE_W EQ 4)) THEN DOLLARS * 2.1 ELSE
IF ((WEEKNUMBER EQ 42) AND (SALESDATE_W EQ 3)) THEN DOLLARS * 1.7 ELSE
DOLLARS;
END
-*
TABLE FILE GGSALES
PRINT WKDOLLARS
WEEKNUMBER_YAXIS
SALESDATE_WR
ON TABLE HOLD
END
-RUN
-*
-* Create Heat Map Visualization.
-*
GRAPH FILE HOLD
SUM WKDOLLARS
BY WEEKNUMBER_YAXIS AS 'Week Number'
ACROSS SALESDATE_WR
ON GRAPH PCHOLD FORMAT JSCHART
ON GRAPH SET LOOKGRAPH SPECTRAL
ON GRAPH SET GRMERGE ADVANCED
ON GRAPH SET GRMULTIGRAPH 0
ON GRAPH SET GRLEGEND 0
ON GRAPH SET GRXAXIS 2
ON GRAPH SET AUTOFIT ON
ON GRAPH SET STYLE *
-*
*GRAPH_SCRIPT
setLegendPosition(2);
setToolTipStyle('html5');
*END
-*
*GRAPH_JS
title: {text: 'Sales Heat Map', visible: true},
subtitle: {text: 'Sales By Week Number Across Day of Week', visible: true},
yaxis: {title: {visible: true, text:'Sales'}},
xaxisOrdinal: {title: {visible: true, text:'Day of Week'}}
*END
ENDSTYLE
END
This message has been edited. Last edited by: David Briars,
September 25, 2015, 08:54 AM
RobertF
Where do you see TREEMAP in the GUI?
WebFOCUS 8206.08 Windows, All Outputs
September 29, 2015, 03:21 PM
RobertF
Well I made some progress ...Question...is there a way to customize the heat..ie the colors shown. I have tried clicking on the colors but it won't let me adjust anything. It seems the software determines not only breaks but the colors assigned to them...
WebFOCUS 8206.08 Windows, All Outputs
September 29, 2015, 10:03 PM
David Briars
quote:
...is there a way to customize the heat..ie the colors shown...
Spectral maps will default to green <-> red.
In my example above, if you add the colorScale property you will be able to control the colors WF will use to draw the color scale.
Will give: This message has been edited. Last edited by: David Briars,
September 30, 2015, 04:56 PM
RobertF
we don't use infoassist. I do not even see any y axis code in my heat map's code. I think its time to accept my loss, hope they improve this and move on.
Thanks!
WebFOCUS 8206.08 Windows, All Outputs
October 02, 2015, 05:16 AM
Tony A
quote:
we don't use infoassist.
What are you using tho develop this then? If via App Studio, then creating a Heat Map (aka Spectral) is easy enough.
Example -
Create new Chart using GGSALES Change format to Spectral by clicking |Format in the top menu followed by the Other icon. Then click Special, Spectral is the last icon that looks like a multi coloured checker board. Add DOLLARS as the measure Add REGION as the across (groups) Add DATE as the by (series)
You can change the styling by choosing any available .sty file via the Home / Theme icon. Just make sure that the style file you select contains the necessary code.
This is the process that David would have followed to create his examples above if he had used the GUI .
TThis message has been edited. Last edited by: Tony A,
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