Focal Point
[SOLVED] Changing the frequency of the tooltip

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

July 31, 2019, 12:58 PM
ccollier
[SOLVED] Changing the frequency of the tooltip
I'm not sure exactly how to explain this or if there's a name for it, but I'd like to change the frequency of a tooltip on a graph. When I mouse over a certain part of a graph, I see certain dates on it, but the frequency is only every month. What I'd like to be able to do is to move my mouse and every be able to hover over every single day on the graph. Is this possible to do on the front end, or would this be more of a back end project?

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


WebFOCUS 8.2.01M on Windows 10
July 31, 2019, 01:19 PM
FP Mod Chuck
ccollier

Please post the code to the fex.


Thank you for using Focal Point!

Chuck Wolff - Focal Point Moderator
WebFOCUS 7x and 8x, Windows, Linux All output Formats
July 31, 2019, 01:40 PM
MartinY
The tooltips are based on the x-axis and y-axis avalable values.
So, if your graph is per Month (e.g. first day of the month), the displayed values will only be per that first day of the month.
If you want your tooltip to be per day, you need to include the day of each month in the same axis as for your month.


WF versions : Prod 8.2.04M gen 33, Dev 8.2.04M gen 33, OS : Windows, DB : MSSQL, Outputs : HTML, Excel, PDF
In Focus since 2007
July 31, 2019, 01:43 PM
ccollier
  GRAPH FILE sp_datawarehouse_runsize_and_runtime
SUM EXTRACT_TIME AS 'Extract'
CLEANSER_TIME AS 'Clean'
TRANSFORM_TIME AS 'Transform'
OTHER_TIME AS 'Other'
BY RUN_DATE AS ''
WHERE @FREQUENCY EQ 'DEFAULT';
WHERE @PREVIOUS_MONTHS EQ &TIME_PERIOD;
ON GRAPH PCHOLD FORMAT JSCHART
ON GRAPH SET VZERO OFF
ON GRAPH SET AUTOFIT ON
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 LOOKGRAPH LINE
ON GRAPH SET AUTOFIT ON
ON GRAPH SET STYLE *
*GRAPH_SCRIPT
setDepthRadius(0);
setUseSeriesShapes(true);
setPlace(true);
setPieDepth(0);
setPieTilt(0);
setCurveFitEquationDisplay(false);
*END
INCLUDE=IBFS:/FILE/IBI_HTML_DIR/javaassist/intl/EN/ENIADefault_combine.sty,$
TYPE=REPORT, TITLETEXT=&WF_TITLE.QUOTEDSTRING, $
TYPE=DATA, COLUMN=N1, BUCKET=x-axis, $
TYPE=DATA, COLUMN=N2, BUCKET=y-axis, $
TYPE=DATA, COLUMN=N3, BUCKET=y-axis, $
TYPE=DATA, COLUMN=N4, BUCKET=y-axis, $
TYPE=DATA, COLUMN=N5, BUCKET=y-axis, $
*GRAPH_SCRIPT
setReportParsingErrors(false);
setSelectionEnableMove(false);
setDisplay(getY1MajorGrid(),false);
setDisplay(getO1MajorGrid(),false);
setDataTextDisplay(false);
setPieFeelerTextDisplay(0);
setDisplay(getO1Label(),false);
setTextString(getO1Title(),"");
setDisplay(getO1Title(),false);
setMarkerShape(getAllSeries(),0);
setSeriesType(0,2);
setSeriesType(1,2);
setSeriesType(2,2);
setSeriesType(3,2);
setSeriesType(4,2);
setSeriesType(5,2);
setSeriesType(6,2);
setSeriesType(7,2);
setSeriesType(8,2);
setSeriesType(9,2);
setSeriesType(10,2);
setSeriesType(11,2);
setSeriesType(12,2);
setSeriesType(13,2);
setSeriesType(14,2);
setSeriesType(15,2);
setGradientPinPosition0(getSeries(*),0.0);
setGradientPinPosition1(getSeries(*),1.0);
setFillType(getSeries(*),1);
setTransparentBorderColor(getSeries(*), true);
setFillColor(getSeries(0),new Color(109,75,138));
setTransparentBorderColor(getSeries(0), true);
setFillColor(getSeries(1),new Color(30,183,241));
setTransparentBorderColor(getSeries(1), true);
setFillColor(getSeries(2),new Color(245,137,57));
setTransparentBorderColor(getSeries(2), true);
setFillColor(getSeries(3),new Color(255,209,33));
setTransparentBorderColor(getSeries(3), true);
setFillColor(getFrame(),new Color(255,255,255));
setCurveFitType(4,&TRENDLINE);
setCurveFitType(5,&TRENDLINE);
setCurveFitType(6,&TRENDLINE);
setCurveFitType(7,&TRENDLINE);
setCurveFitType(8,&TRENDLINE);
setCurveFitType(9,&TRENDLINE);
setCurveFitType(0,&TRENDLINE);
setCurveFitType(1,&TRENDLINE);
setCurveFitType(2,&TRENDLINE);
setCurveFitType(3,&TRENDLINE);
setConnectLineMarkers(true);
setSmoothLines(false);
setCurveFitEquationDisplay(true);
setDisplay(getY1Title(),true);
setTextString(getY1Title(),"Hours");
*GRAPH_JS_FINAL
"pieProperties": {
    "holeSize": "0%"
},
"series":     [
        {
            "color": "#6D4B6C",
            "series": 0
        },
        {
            "color": "#1EB8F1",
            "series": 1
        },
        {
            "color": "#F5893A",
            "series": 2
        },
        {
            "color": "#FFD122",
            "series": 3
        }
    ],
"introAnimation": {
    "enabled": false
},
"blaProperties": {
    "seriesLayout": "stacked",
    "lineConnection": "linear",
    "lineFillEffect": "35%"
},
"riserBevel": "none",
"yaxis": {
    "title": {
        "text": "Hours"
    }
},
"agnosticSettings": {
    "chartTypeFullName": "Line_Absolute"
}
*END
ENDSTYLE
END


I'm beginning to think that it would be a backend job. Each tooltip is based on the BY RUN_DATE, which is different according to the @previous_months.


WebFOCUS 8.2.01M on Windows 10
July 31, 2019, 02:06 PM
ccollier
After looking further into the stored procedure, I have discovered it's a backend job. There is a parameter, @frequency, that allows me to change the frequency from something like month, to day or week.


WebFOCUS 8.2.01M on Windows 10