Focal Point
[CLOSED]Drill down on Y-Axis on a Spectral Graph

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/3427022386

July 27, 2016, 10:05 AM
krhapner
[CLOSED]Drill down on Y-Axis on a Spectral Graph
We are trying to drill down on a STATE (ST) label (on the y axis) for a spectral (heat map) chart.

Here is an example of our code:
quote:

GRAPH FILE GGSALES
SUM DOLLARS
BY ST
ACROSS DATE
ON GRAPH PCHOLD FORMAT JSCHART
ON GRAPH SET HTMLENCODE ON
ON GRAPH SET GRAPHDEFAULT OFF
ON GRAPH SET ARGRAPHENGIN JSCHART
ON GRAPH SET VZERO OFF
ON GRAPH SET GRWIDTH 1
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 *
type=data, acrosscolumn=N1, focexec=carinst.fex(V1=ST V2=DATE V3=DOLLARS), target=_blank, $
ENDSTYLE
END



So, on click of the STATE (ST) label on the y-axis we would like to drill-down to a report.

We have tried:
quote:

TYPE = DATA, COLUMN = (N1, N2, N3, ETC.)
TYPE = DATA, COLUMN = ST
TYPE = DATA, ACROSSCOLUMN = (N1, N2, N3, ETC.)
TYPE = DATA, ACROSSCOLUMN = MAJOR
TYPE = TITLE, ....

This message has been edited. Last edited by: <Emily McAllister>,


WebFOCUS 8
Windows, All Outputs
July 27, 2016, 10:22 AM
Tony A
When you provide an example, try and replicate on one of the sample files so that people can see your issue easily.

This works for me on 8.1.05

GRAPH FILE GGSALES
SUM DOLLARS
BY ST
ACROSS DATE
ON GRAPH PCHOLD FORMAT JSCHART
ON GRAPH SET HTMLENCODE ON
ON GRAPH SET GRAPHDEFAULT OFF
ON GRAPH SET ARGRAPHENGIN JSCHART
ON GRAPH SET VZERO OFF
ON GRAPH SET GRWIDTH 1
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 *
type=data, acrosscolumn=N1, focexec=carinst.fex(V1=ST V2=DATE V3=DOLLARS), target=_blank, $
ENDSTYLE
END


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 
July 27, 2016, 10:29 AM
krhapner
Thank you Tony... However, this does not work.

I want to be able to click on the state (ST) label on the left hand side of the graph, not anywhere actually on the spectral map. Does this make sense?


WebFOCUS 8
Windows, All Outputs
July 27, 2016, 11:17 AM
Tony A
So what you really mean is that, although my example does work, it isn't what you really need.

I've tried to get this working within the GUI and the hyperlink icon is not active for either of the axis so I would hazard a guess that this is not possible using standard STYLE syntax. However, you could look at including it within the *GRAPH_JS section.


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