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] HTML5 data grid chart: Trouble changing column header color and font
Go
New
Search
Notify
Tools
Reply
  
[CLOSED] HTML5 data grid chart: Trouble changing column header color and font
 Login/Join
 
Member
posted
Hey, WebFocus noob here. I'm trying to build a simple KPI file that simply has the measure title and the measure below it. I originally built it using a tablular report format but it didn't provide what I needed once I put it on a portal.

The HTML5 data grid could could do what I need but I can't seem to style the column header. I'm aware you can't apply WF styling to it, so I'm following the instructions here and here.

I have this code in the fex file:

 dataGridProperties: {
	colHeader: {
		sorting: {enabled:false},
		fill: '#043B56',
		title: {color: '#FFFFFF'}
	}
} 


It's giving me the blue filled header as it should, but it's not changing the title color to white. I'm also not able to change the default font from "Sans Serif" to something else, that completely errors out.

Does anyone have experience with this that can tell me what I'm overlooking?

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


WebFocus 8.2.06
 
Posts: 1 | Registered: October 28, 2019Reply With QuoteReport This Post
Master
posted Hide Post
Hi kds! Welcome to the forum. 😁

One thing that will help us, help you, is if you can replicate the issues that you are seeing using the CAR file or some other dataset from the ibisamp folder, and post the code in it's entirety. This will enable us to be able run the code and see what you are seeing.


Hallway
WF(Prod):8202M
WF(Test):8202M
OS/Platform:Win 10
Outputs:All
 
Posts: 489 | Location: Salt Lake City, UT, USA | Registered: November 18, 2015Reply With QuoteReport This Post
Virtuoso
posted Hide Post
ENGINE INT CACHE SET ON
SET PAGE-NUM=NOLEAD
SET HTMLENCODE=ON
SET ARGRAPHENGINE=JSCHART
SET EMBEDHEADING=ON
SET GRAPHDEFAULT=OFF

GRAPH FILE GGSALES
SUM DOLLARS/P9C AS '$'
BY PRODUCT      AS 'Product'
BY REGION       AS ''

ON GRAPH PCHOLD FORMAT JSCHART
ON GRAPH SET HAXIS 600.0
ON GRAPH SET VAXIS 200.0
ON GRAPH SET LOOKGRAPH DATAGRID
ON GRAPH SET STYLE *
*GRAPH_SCRIPT
setPieDepth(0);
setPieTilt(0);
setDepthRadius(0);
setCurveFitEquationDisplay(false);
setPlace(true);
setUseSeriesShapes(true);
*END
INCLUDE=IBFS:/FILE/IBI_HTML_DIR/ibi_themes/Warm.sty,$

TYPE=DATA, COLUMN=N1, BUCKET=row, $
TYPE=DATA, COLUMN=N2, BUCKET=column, $
TYPE=DATA, COLUMN=N3, BUCKET=measure, $
*GRAPH_SCRIPT
setReportParsingErrors(false);
setSelectionEnableMove(false);
*END
*GRAPH_JS
dataGridProperties: {
   cell: {layout: {width: {rule: 'minSize', value: 100}}}
}
*END
*GRAPH_JS_FINAL
dataGridProperties: {
 colHeader: {
      fill: '#043B56', 
      labels: {font: 'bold 12pt Sans-Serif', color: 'white'},
      lastLabels: {font: 'bold 12pt Sans-Serif', color: 'white'}
 } 
}
*END
ENDSTYLE
END
-RUN


WF versions : Prod 8.2.0.1M gen 240, Dev 8.2.04 gen 48, OS : Windows, DB : MSSQL, Outputs : HTML, Excel, PDF
In Focus since 2007
 
Posts: 2225 | Location: Montreal Area, Qc, CA | Registered: September 25, 2013Reply With QuoteReport This Post
  Powered by Social Strata  
 

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] HTML5 data grid chart: Trouble changing column header color and font

Copyright © 1996-2018 Information Builders, leaders in enterprise business intelligence.