Focal Point
Waterfall chart

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

August 28, 2007, 02:11 PM
Spence
Waterfall chart
I would like to be able to change the value that is being displayed in the graph bars to the value that is being diplayed when hovering over the bar. The value showing in the bar is a whole number and the hover value is a percentage. I would like for the percentage to show in the bar.

DEFINE FILE CAR
ENGLAND_SLS /D8 = IF COUNTRY EQ 'ENGLAND' THEN SALES ELSE 0;
JAPAN_SLS /D8 = IF COUNTRY EQ 'JAPAN' THEN SALES ELSE 0;
ITALY_SLS /D8 = IF COUNTRY EQ 'ITALY' THEN SALES ELSE 0;
GERMANY_SLS /D8 = IF COUNTRY EQ 'W GERMANY' THEN SALES ELSE 0;
END
TABLE FILE CAR
SUM
COMPUTE TOT_SALES/D8 = ENGLAND_SLS+JAPAN_SLS+ITALY_SLS+GERMANY_SLS;
E_SLS/D8.2% = ((ENGLAND_SLS/TOT_SALES)* 100) * (-1);
J_SLS/D8.2% = ((JAPAN_SLS/TOT_SALES)* 100) * (-1);
I_SLS/D8.2% = ((ITALY_SLS/TOT_SALES)* 100) * (-1);
G_SLS/D8.2% = ((GERMANY_SLS/TOT_SALES)* 100) * (-1);
TOT_PCT/D8.2% = (E_SLS + J_SLS + I_SLS + G_SLS) * (-1);
ON TABLE HOLD
END
GRAPH FILE HOLD
SUM TOT_PCT
E_SLS
J_SLS
I_SLS
G_SLS
ON GRAPH PCHOLD AS HOLD FORMAT PNG
ON GRAPH SET GRAPHDEFAULT OFF
ON GRAPH SET GRMERGE ADVANCED
ON GRAPH SET GRMULTIGRAPH 0
ON GRAPH SET GRLEGEND 0
ON GRAPH SET GRXAXIS 0
ON GRAPH SET HAXIS 770
ON GRAPH SET VAXIS 405
ON GRAPH SET UNITS PIXELS
ON GRAPH SET LOOKGRAPH VWATERFL
ON GRAPH SET GRAPHSTYLE *
setTemplateFile("");
setReportParsingErrors(false);
setSelectionEnableMove(false);
setPlace(true);
setTextString(getTitle(),"OTIF");
setDisplay(getTitle(),true);
setFontName(getDataText(),"Tahoma");
setDisplay(getLegendArea(),false);
setFillColor(getTitle(),new Color(0,0,0));
setFontName(getTitle(),"Tahoma");
setFontSizeAbsolute(getTitle(),true);
setFontSizeInPoints(getTitle(),14);
setTextString(getY1Title(),"Order Items");
setDisplay(getY1Title(),true);
setTextFormatPreset(getY1Label(),-1);
setTextFormatPattern(getY1Label(),"###,###");
setTextFormatPattern(getDataText(),"###,###");
setFillColor(getChartBackground(),new Color(255,255,255));
setFillColor(getAnnotationBox(0),new Color(255,255,255));
setDepthRadius(0);
setDepthAngle(0);
setBorderColor(getO1AxisLine(),new Color(32,0,32));
setBorderColor(getFrame(),new Color(32,0,32));
setShadowColor(getFrame(),new Color(192,192,192));
setFillColor(getFrame(),new Color(209,209,209));
setFillColor(getO1Label(),new Color(0,0,0));
setFontName(getO1Label(),"Tahoma");
setTextJustHoriz(getO1Label(),2);
setTextFormatPreset(getDataText(),-1);
setFillColor(getDataText(),new Color(0,0,255));
setTextRotation(getDataText(),3);
setFontSizeAbsolute(getDataText(),true);
setFontSizeInPoints(getDataText(),12);
setFontStyle(getDataText(),0);
setDisplay(getWaterfallLine(),true);
setDisplay(getDataText(),true);
ENDSTYLE
END


WF 8 version 8.2.04. Windows.
In focus since 1990.
August 29, 2007, 06:52 AM
FrankDutch
When I run this graph I see on mouse over not a percentage, but the change between two bars.




Frank

prod: WF 7.6.10 platform Windows,
databases: msSQL2000, msSQL2005, RMS, Oracle, Sybase,IE7
test: WF 7.6.10 on the same platform and databases,IE7

August 29, 2007, 08:30 AM
Spence
Frank,

That change between the bars is the value I would like to appear in the bar.


WF 8 version 8.2.04. Windows.
In focus since 1990.
September 04, 2007, 12:45 AM
Piipster
Try:
setStackedDataValueSum(false);


ttfn, kp


Access to most releases from R52x, on multiple platforms.
September 04, 2007, 09:27 AM
Spence
piipster,

That worked. Thank you.


WF 8 version 8.2.04. Windows.
In focus since 1990.