Focal Point Banner
Community Center Education Summit Technical Support User Groups
Let's Get Social!

Facebook Twitter LinkedIn YouTube
Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] Need BUCKET=column Labels on bottom in JSCHART
Go
New
Search
Notify
Tools
Reply
  
[CLOSED] Need BUCKET=column Labels on bottom in JSCHART
 Login/Join
 
Platinum Member
posted
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
 
Posts: 152 | Registered: July 10, 2018Reply With QuoteReport This Post
Member
posted Hide Post
Try changing BUCKET=column to BUCKET=x-axis in both cases.


WebFOCUS 8202, 8203, Windows 2012 R2
SQL Server 2016, App Studio 8202, 8203
 
Posts: 19 | Location: Jericho, NY | Registered: February 18, 2014Reply With QuoteReport This Post
Platinum Member
posted Hide Post
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
 
Posts: 152 | Registered: July 10, 2018Reply With QuoteReport This Post
Member
posted Hide Post
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
 
Posts: 19 | Location: Jericho, NY | Registered: February 18, 2014Reply With QuoteReport This Post
Platinum Member
posted Hide Post
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
 
Posts: 152 | Registered: July 10, 2018Reply With QuoteReport This Post
Member
posted Hide Post
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
 
Posts: 19 | Location: Jericho, NY | Registered: February 18, 2014Reply With QuoteReport This Post
Platinum Member
posted Hide Post
hey thanks a lot Mcarey. I really appreciate all your input here. Closing this out. Happy Wednesday


WebFOCUS 8204
 
Posts: 152 | Registered: July 10, 2018Reply With QuoteReport This Post
  Powered by Social Strata  
 

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] Need BUCKET=column Labels on bottom in JSCHART

Copyright © 1996-2020 Information Builders