Jump to content
The ibi Community has moved to a new platform: Please Sign In and choose Forgot Password to continue

We have several IA charts with Titles. They are rendered in...


robert fuschetto

Recommended Posts

We have several IA charts with Titles. They are rendered in a PowerPoint fex. All is good except no matter what we do, the Charts titles are tiny. I have the styling set to 18 pt fontit seems to have no effect. Is there something in the IA chart fex code I must tweak to get the font of the chart title bigger
Link to comment
Share on other sites

This is working with jschart

ENGINE INT CACHE SET ON

SET PAGE-NUM=NOLEAD

SET HTMLENCODE=ON

SET ARGRAPHENGINE=JSCHART

SET EMBEDHEADING=ON

SET GRAPHDEFAULT=OFF

-DEFAULTH &WF_STYLE_UNITS='PIXELS';

-DEFAULTH &WF_STYLE_HEIGHT='240.0';

-DEFAULTH &WF_STYLE_WIDTH='460.0';

-DEFAULTH &WF_TITLE = 'Heading Styling';

 

GRAPH FILE CAR

SUM SEATS AS 'Seats'

BY MODEL AS 'Model'

 

HEADING

"Heading Font Test"

ON GRAPH PCHOLD FORMAT JSCHART

ON GRAPH SET VZERO OFF

ON GRAPH SET GRWIDTH 1

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 BAR

ON GRAPH SET AUTOFIT ON

ON GRAPH SET STYLE *

*GRAPH_SCRIPT

setPieDepth(0);

setPieTilt(0);

setDepthRadius(0);

setCurveFitEquationDisplay(false);

setPlace(true);

*END

INCLUDE=IBFS:/FILE/IBI_HTML_DIR/ibi_themes/Warm.sty,$

TYPE=REPORT, TITLETEXT=&WF_TITLE.QUOTEDSTRING, $

-*-* Below line to play with

-*-* ===============================

TYPE=HEADING, JUSTIFY=CENTER, SIZE=20, COLOR=RGB(8 97 74), STYLE=BOLD, $

-*-* ===============================

*GRAPH_SCRIPT

setReportParsingErrors(false);

setSelectionEnableMove(false);

setDisplay(getY1Title(),false);

setDisplay(getY1Label(),false);

setDisplay(getY1AxisLine(),false);

setLabelStagger(getO1Label(),true);

-* 45deg

setTextRotation(getO1Label(),3);

*END

 

*GRAPH_JS_FINAL

"xaxis": {

"title": {"visible": false}

},

"yaxis": {

"title": {"visible": false},

"majorGrid": {"ticks": {"visible": false}}

}

*END

ENDSTYLE

END

-RUN

Link to comment
Share on other sites

No matter what I change the value to, the title never gets bigger. Now we do have the chart shrunk down pretty small on the HTML pagebut it likethe HEADING is locked in very smallI just changed to 36 fontno change at all.

GRAPH FILE foccache/holdchgs

-* Created by Info Assist for Graph

SUM HOLDCHGS.SEG01.CHGS AS

BY HIGHEST HOLDCHGS.SEG01.FISCALYEAR AS

WHERE HOLDCHGS.SEG01.EPICFSCCAT EQ AUTO;

HEADING

AUTO

ON GRAPH PCHOLD FORMAT HTML

ON GRAPH SET VZERO OFF

ON GRAPH SET GRWIDTH 1

ON GRAPH SET UNITS &WF_STYLE_UNITS

ON GRAPH SET HAXIS &WF_STYLE_WIDTH

ON GRAPH SET VAXIS &WF_STYLE_HEIGHT

ON GRAPH SET GRMERGE ADVANCED

ON GRAPH SET GRMULTIGRAPH 0

ON GRAPH SET GRLEGEND 0

ON GRAPH SET GRXAXIS 1

ON GRAPH SET LOOKGRAPH VBAR

ON GRAPH SET STYLE *

*GRAPH_SCRIPT

setPieDepth(0);

setPieTilt(0);

setDepthRadius(0);

setPlace(true);

setCurveFitEquationDisplay(false);

*END

INCLUDE=IBFS:/FILE/IBI_HTML_DIR/javaassist/intl/EN/ENIADefault_combine.sty,$

TYPE=REPORT, TITLETEXT=&WF_TITLE.QUOTEDSTRING, $

TYPE=HEADING, JUSTIFY=CENTER, FONT=Trebuchet MS, SIZE=36, COLOR=RGB(66 70 73), STYLE=BOLD, $

*GRAPH_SCRIPT

setReportParsingErrors(false);

setSelectionEnableMove(false);

setTextRotation(getO1Label(),1);

setFontSizeAbsolute(getO1Label(), true);

setFontSizeInPoints(getO1Label(), 8);

setPlaceResize(getO1Label(), 0);

setFontSizeAbsolute(getY1Label(), true);

setFontSizeInPoints(getY1Label(), 8);

setPlaceResize(getY1Label(), 0);

setTextFormatPreset(getY1Label(),30);

*END

ENDSTYLE

END

Link to comment
Share on other sites

Perhaps overkill but I needed to put about 8 of these on an HTML page exportable to PP. It all works and note I was able to adjust the Fiscal year verbiage and the scale (%'s)I think they are set to Font Size 8. The Chart header is set to font size 36! Does it look like 36LOL.

 

a bit hard to read! Adding:

ON GRAPH SET EMBEDHEADING OFF

did not make a difference.

Link to comment
Share on other sites

MartinY:

 

SET EMBEDHEADING=OFF

or in graph declaration

ON GRAPH SET EMBEDHEADING OFF

 

 

Martin,

Odd, when my cubemate ran the chart this morning with:

ON GRAPH SET EMBEDHEADING OFF

Suddenly it workedkind of. No idea what happened yeserday. The problem now is the chart itself gets scrunched. See below.

First chart has ON GRAPH SET EMBEDHEADING OFF w/Font Size set to 12

Second chart has ON GRAPH SET EMBEDHEADING OFF w/Fint Size set to 7

3rd Chart has NO ON GRAPH SET EMBEDHEADING OFF codeand font size set to 18again, no effect.

Why does it leave so much white space now Can I do anything about this and the scrunching of the chart

 

image.png849200 45.8 KB

Link to comment
Share on other sites

Maybe going with an annotation instead of a heading would work better for you

 

image.png1785895 12.7 KB

 

GRAPH FILE ggsales

SUM UNITS

BY REGION

HEADING

" "

ON GRAPH PCHOLD FORMAT JSCHART

ON GRAPH SET EMBEDHEADING ON

ON GRAPH SET HTMLENCODE OFF

ON GRAPH SET LOOKGRAPH BAR

ON GRAPH SET AUTOFIT ON

ON GRAPH SET STYLE *

TYPE=DATA, COLUMN=REGION, BUCKET=x-axis, $

TYPE=DATA, COLUMN=UNITS, BUCKET=y-axis, $

*GRAPH_JS

"annotations": [{

"position": { "x":"50%", "y": "16px" },

"label": { "visible":true, "text": "Auto",

"font":"20pt arial", "color":"black", "style":"bold" }

}]

*END

ENDSTYLE

END

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...