Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVDED] Bullet chart saved as image issue

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVDED] Bullet chart saved as image issue
 Login/Join
 
Member
posted
I am trying to create an image WITH a bullet chart type (gif, png or jpeg) using:

ON GRAPH HOLD AS 'xbullet' FORMAT GIF

The image created is very different than HTML version (to obtain HTML version, remove the line above in the code below).
Have I done something wrong?

See my CAR code below.

Could anyone help?


-************************DATA SETUP
DEFINE FILE CAR
COST_TYPE/A10='1';
COST/D12.2=DEALER_COST;
END
TABLE FILE CAR
PRINT
COST_TYPE
CAR
MODEL
COST
ON TABLE HOLD AS DEALER_INFO
END

DEFINE FILE CAR
COST_TYPE/A10='0';
COST/D12.2=RETAIL_COST;
END
TABLE FILE CAR
PRINT
COST_TYPE
CAR
MODEL
COST
ON TABLE HOLD AS RETAIL_INFO
END

TABLE FILE RETAIL_INFO
PRINT
COST_TYPE
CAR
MODEL
COST
ON TABLE HOLD AS GRAPH_INFO
MORE
FILE DEALER_INFO
END

-************************GRAPH
ENGINE INT CACHE SET ON

-SET &HOLDAPP = 'baseapp';

APP HOLD &HOLDAPP

-DEFAULTH &WF_STYLE_UNITS='PIXELS';
-DEFAULTH &WF_STYLE_HEIGHT='60.0';
-DEFAULTH &WF_STYLE_WIDTH='300.0';

SET EMPTYREPORT = ON

GRAPH FILE GRAPH_INFO
SUM
COST
BY COST_TYPE
WHERE MODEL EQ 'XJ12L AUTO';
ON GRAPH SET VAXIS 80
ON GRAPH PCHOLD FORMAT JSCHART
ON GRAPH SET VZERO OFF
-*ON GRAPH SET HTMLENCODE ON
ON GRAPH SET GRAPHDEFAULT OFF
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 CUSTOM
-**********************************************
ON GRAPH HOLD AS '_bullet' FORMAT GIF
-**********************************************
ON GRAPH SET STYLE *
*GRAPH_JS
chartType: 'bullet',
bulletProperties:
{drawFirstValueAsBar: true},
border: {width: 0},
dataLabels: {visible: true, color: 'black', font: '10pt'},
series: [
{series: 'all', showDataValues: true},
{series: 0, group: 0, color: 'steelblue', marker: {size: 15, position: 'middle'}},
{series: 0, group: 1, color: 'red', marker: {size: 15, position: 'middle'}},
]
*END
INCLUDE=IBFS:/FILE/IBI_HTML_DIR/javaassist/intl/EN/ENIADefault_combine.sty,$
ENDSTYLE
END

This message has been edited. Last edited by: FP Mod Chuck,


WebFOCUS 8.0.9
Windows, All Outputs
 
Posts: 4 | Registered: May 01, 2014Report This Post
Expert
posted Hide Post
The reason why your saved image is different is that you have GRAPH_JS code that is not used in charts saved as an image.

If you need to match the look, you will need to add in non GRAPH_JS commands. please see WebFOCUS Charting. (Not sure what its called in v7.7)


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

 
Posts: 6347 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report This Post
Member
posted Hide Post
I remember now I have to use non GRAPH_JS code.
Thank you.

nb. My Webfocus version was modified on my profil


WebFOCUS 8.0.9
Windows, All Outputs
 
Posts: 4 | Registered: May 01, 2014Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVDED] Bullet chart saved as image issue

Copyright © 1996-2020 Information Builders