robert fuschetto Posted January 6, 2022 Posted January 6, 2022 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
Martin Yergeau Posted January 6, 2022 Posted January 6, 2022 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
robert fuschetto Posted January 6, 2022 Author Posted January 6, 2022 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
Martin Yergeau Posted January 6, 2022 Posted January 6, 2022 The only way I found in a HTML format is to have the below set at top of fex SET EMBEDHEADING=OFF or in graph declaration ON GRAPH SET EMBEDHEADING OFF But this result that your heading is outside the graph area and aligned with the page instead
robert fuschetto Posted January 6, 2022 Author Posted January 6, 2022 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.
robert fuschetto Posted January 7, 2022 Author Posted January 7, 2022 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
David Beagan Posted January 7, 2022 Posted January 7, 2022 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
robert fuschetto Posted January 7, 2022 Author Posted January 7, 2022 can I do an annotation via the GUI We have been burned a few times lately just updating the codeWhere is annotation in the GUI Sorrywe just started using IA when the discontinued App Studio charting in favor of DS charting that is not yet up to snuffat least for us.
Ben Maxwell Posted January 7, 2022 Posted January 7, 2022 Is this one of those things which has to be done via code, and cant be done in the GUI I was able to paste the code & have it run, however I am no longer able to open via the GUI.
Martin Yergeau Posted January 7, 2022 Posted January 7, 2022 If you experience that, the answer is yes
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now