Focal Point
[CLOSED]Bidirectional bar/line chart - Hover text and value for line chart

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

November 30, 2015, 07:08 AM
SriAravind
[CLOSED]Bidirectional bar/line chart - Hover text and value for line chart
Hi,
I am not getting the correct hovering text and value for line chart in a bidirectional bar/line combined chart (WF 7.7.05 Version).

Below is the sample code:
  
DEFINE FILE CAR
N_DEALER/D12.2=DEALER_COST * - 1;
END

GRAPH FILE CAR
SUM
RETAIL_COST AS 'Retail Cost'
N_DEALER AS 'Dealer Cost Negative'
SALES AS 'Sales Amount'
BY COUNTRY AS ''

ON GRAPH PCHOLD FORMAT JSCHART
ON GRAPH SET VZERO OFF
ON GRAPH SET HTMLENCODE ON
ON GRAPH SET GRAPHDEFAULT OFF
ON GRAPH SET EMBEDHEADING ON
ON GRAPH SET UNITS PIXELS
ON GRAPH SET HAXIS 770.0
ON GRAPH SET VAXIS 400.0
ON GRAPH SET GRMERGE ON
ON GRAPH SET GRMULTIGRAPH 0
ON GRAPH SET GRLEGEND 0
ON GRAPH SET GRXAXIS 2
ON GRAPH SET LOOKGRAPH VBRSTK1
ON GRAPH SET AUTOFIT ON
ON GRAPH SET STYLE *

*GRAPH_SCRIPT
setPieDepth(0);
setPieTilt(0);
setDepthRadius(0);
setCurveFitEquationDisplay(false);
setPlace(true);
setUseSeriesShapes(true);
setMarkerSizeDefault(50);

setTextFormatPreset(getY1Label(),6);
setReportParsingErrors(false);
setSelectionEnableMove(false);
setMarkerShape(getAllSeries(),2);
setFillColor(getFrame(),new Color(255,255,255));
setDisplay(getO1MajorGrid(),false);
setFrameAutoShade(false);
setBorderColor(getFrameSide(),new Color(255,255,255));
setBorderColor(getFrameBottom(),new Color(255,255,255));
setFillColor(getFrameBottom(),new Color(32,0,32));

-* Trend line and Transparent Border to right
setCurveFitType(3,8);
setTransparentBorderColor(getFrame(),true);
setSeriesType(2,2);
setLineWidth(getSeries(2),1);
setFillColor(getSeries(0),new Color(0,153,0));
setFillColor(getSeries(1),new Color(50,101,176));
setFillColor(getSeries(2),new Color(0,0,0));

setAltFmtFrameNumColors(getY1AltFmtFrame(),5);
setGridStyle(getY1MajorGrid(),3);
setBorderColor(getY1MajorGrid(),new Color(192,192,192));
setBorderColor(getY1MajorTick(),new Color(192,192,192));
setTransparentBorderColor(getChartBackground(),true);
setTextFormatPattern(getDataText(),"###,###,###.##");
setUserToolTip("[SL] for [GL]  $[YV]");
setFillColor(getY1MajorGridColorBand1(),new Color(255,255,255));
setBorderColor(getY1MajorGridColorBand1(),new Color(255,255,255));
setDisplay(getY1MajorGridColorBand2(),true);
setFillColor(getY1MajorGridColorBand2(),new Color(255,255,255));
setBorderColor(getY1MajorGridColorBand2(),new Color(255,255,255));
setBorderColor(getY1MajorTick(),new Color(192,192,192));
-* Font for the Bottom labels
setFontStyle(getO1Label(),0);
setFontSizeAbsolute(getO1Label(), true);
setFontName(getO1Label(),"ARIAL");
setFontSizeInPoints(getO1Label(),9);
setPlaceResize(getO1Label(), 0);
setFillColor(getO1Label(),new Color(20,20,20));
-* Font for the Left Side labels
setFontStyle(getY1Label(),0);
setFontSizeAbsolute(getY1Label(), true);
setFontName(getY1Label(),"ARIAL");
setFontSizeInPoints(getY1Label(),9);
setPlaceResize(getY1Label(), 0);
setFillColor(getY1Label(),new Color(20,20,20));
setTextFormatPreset(getY1Label(),6);
-* Font for the Right Side labels
setFontStyle(getY2Label(),0);
setFontSizeAbsolute(getY2Label(), true);
setFontName(getY1Label(),"ARIAL");
setFontSizeInPoints(getY2Label(),9);
setPlaceResize(getY2Label(), 0);
setFillColor(getY2Label(),new Color(20,20,20));
setTextFormatPreset(getY2Label(),6);

setUseSeriesShapes(false);
setMarkerShape(getAllSeries(),0);
setLineBasicStrokeType(getSeries(1),14);
setDisplay(getLegendArea(),false);
setAxisAssignment( $0, 0);
setAxisAssignment( $1, 1);
setTextFormatPreset(getY1Label(),6);
setTextFormatPreset(getY2Label(),1);
setForceSeriesAbsolute(getSeries(0),true);
setForceSeriesAbsolute(getSeries(1),true);
setForceSeriesAbsolute(getSeries(2),true);
setDisplay(getY2MajorGrid(),false);
setTextFormatPreset(getY2Label(),16);

*END
TYPE=REPORT, TITLETEXT='WebFOCUS Report', LEFTMARGIN=36.81, RIGHTMARGIN=36.81, $$
TYPE=HEADING, JUSTIFY=LEFT, FONT='ARIAL', SIZE=12, COLOR=RGB(66 70 73), STYLE=BOLD, $

*GRAPH_JS

 blaProperties: {lineConnection:'linear',
comboCharts: {
 barSeriesLayout: 'stacked',
 lineSeriesLayout:'absolute'}
},

 "introAnimation": {
  "enabled": true,
  "duration": 1400
 },

 "xaxisOrdinal": {
  "bodyLineStyle": {
      "width": 1,
      "color": "grey"
},

  "majorGrid": {
   "visible": false,
   "ticks": {"length": 5, "style": 'outer',  "lineStyle": {width: 1, color:'grey'}
}
}
}
*END

ENDSTYLE
END

Below is the result for the code


Hovering text and values looks correct for bar chart. But hovering text and values remains same for all the country in the line chart which is incorrect.

How do i get the right values and text for line chart also.

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


WebFocus Version 7.7.05
Windows, HTML/PDF/EXL2K/AHTML
December 03, 2015, 12:17 PM
Kathleen Butler
Hi SriAravind,

We inquired with the Product Manager regarding this issue. Since you are running version 7.7.05, please open up a case by contacting Technical Support.

This issue has also been addressed in newer releases of the software. I'm not sure if you're in a situation to upgrade, but upgrading would definitely resolve your issue as well as offer many new features.

Sincerely,
Kathleen Butler
Information Builders