Focal Point
[CLOSED] Need BUCKET=column Labels on bottom in JSCHART

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

October 27, 2020, 09:13 AM
Brandon Andrathy
[CLOSED] Need BUCKET=column Labels on bottom in JSCHART
Hello,

I am trying to get the JSCHART Column Labels to be on the bottom of my graph instead of on the top. Can anyone explain how to accomplish this? I have included an example in the CAR file below:

 

GRAPH FILE CAR
SUM SALES
	BY COUNTRY
	BY SEATS
ON GRAPH PCHOLD FORMAT JSCHART
ON GRAPH SET VZERO OFF
ON GRAPH SET GRWIDTH 1
ON GRAPH SET AUTOFIT ON
ON GRAPH SET LOOKGRAPH BAR
ON GRAPH SET AUTOFIT ON
ON GRAPH SET STYLE *
*GRAPH_SCRIPT
*END
INCLUDE=IBFS:/FILE/IBI_HTML_DIR/ibi_themes/Warm.sty,$
TYPE=DATA, COLUMN=N1, BUCKET=column, $
TYPE=DATA, COLUMN=N2, BUCKET=column, $
TYPE=DATA, COLUMN=N3, BUCKET=y-axis, $
*GRAPH_SCRIPT
*END
ENDSTYLE
END

 

This message has been edited. Last edited by: Brandon Andrathy,


WebFOCUS 8204
October 27, 2020, 11:31 AM
mcarey
Try changing BUCKET=column to BUCKET=x-axis in both cases.


WebFOCUS 8202, 8203, Windows 2012 R2
SQL Server 2016, App Studio 8202, 8203
October 27, 2020, 12:37 PM
Brandon Andrathy
Hey Mcarey, thank you for your response.

i had it like that before. unfortunateley I just don't like the display as much as i do when it's set to column


WebFOCUS 8204
October 27, 2020, 01:34 PM
mcarey
Comment out the stylesheet and it displays the labels similar to how they displayed before. You could probably then use api calls to style things.


WebFOCUS 8202, 8203, Windows 2012 R2
SQL Server 2016, App Studio 8202, 8203
October 29, 2020, 03:56 PM
Brandon Andrathy
Hey McCarey, thanks for your response again.

I've been trying to dissect the API and get a better handle on that stuff. You mean the GRAPH_JS_FINAL portion of code, right?

Do you have any resources that you could point me to to get a handle on this? I've tried identifying portions such as "SERIES" and "Matrix" and attributing "Position" = bottom but that didn't seem to do the trick for me.


WebFOCUS 8204
November 02, 2020, 08:40 AM
mcarey
Hi Brandon,

I used the documentation earlier this year when 'wrestling' with some charts, https://webfocusinfocenter.inf...js/tech-library.html.

I believe I used a combination of the JSON attributes and the API type calls (e.g. setO1AxisSide(1)) to achieve what I wanted.


WebFOCUS 8202, 8203, Windows 2012 R2
SQL Server 2016, App Studio 8202, 8203
November 04, 2020, 10:28 AM
Brandon Andrathy
hey thanks a lot Mcarey. I really appreciate all your input here. Closing this out. Happy Wednesday


WebFOCUS 8204