M.App Enterprise Discussions

Discuss topics with other M.App Enterprise Product pioneers and experts to get the most out of it.
Showing results for 
Search instead for 
Do you mean 
Reply
Valued Contributor
Posts: 577
Registered: ‎10-27-2015

Feature Analyzer font size in data table chart

Dear all,

is it possible to modify the font size of the text in a Data Table chart?

I know that is possible to modify the title of the chart, but inside the rows?

 

thanks

Valued Contributor
Posts: 577
Registered: ‎10-27-2015

Re: Feature Analyzer font size in data table chart

Any news about this?

Valued Contributor
Posts: 577
Registered: ‎10-27-2015

Re: Feature Analyzer font size in data table chart

This issue (can't change font size) concerns also other kind of charts

Technical Evangelist
Posts: 1,143
Registered: ‎09-11-2015

Re: Feature Analyzer font size in data table chart

Hi Giuseppe,

 

This can be done by CSS styling via a Functional Attribute, e.g.:

if (rowId === 0) {
  var style = document.createElement('style');
  style.type = 'text/css'; 
  style.innerHTML += '.dc-chart g.row text { text-size: 12pt } \n';
  style.id = "RowChartOverriseFontStyle";

  // remove existing style if present
  var headElement = document.getElementsByTagName('head')[0];
  var existingClusterStyle = document.getElementById('RowChartOverriseFontStyle');
  if (existingClusterStyle)
    headElement.removeChild(existingClusterStyle);
  headElement.appendChild(style);
}

 

 

Jan Neumann
Post Sales Engineer Web Applications
Hexagon Geospatial

Valued Contributor
Posts: 577
Registered: ‎10-27-2015

Re: Feature Analyzer font size in data table chart

Thanks

Highlighted
Staff
Posts: 14
Registered: ‎04-04-2018

Re: Feature Analyzer font size in data table chart

[ Edited ]

Try this (target class is dc-table-column):

 

if (rowId === 0) {
  var style = document.createElement('style');
  style.type = 'text/css'; 
  style.innerHTML += '.dc-table-column { font-size: 16px !important } \n';
  style.id = "RowChartOverriseFontStyle";
 
  // remove existing style if present
  var headElement = document.getElementsByTagName('head')[0];
  var existingClusterStyle = document.getElementById('RowChartOverriseFontStyle');
  if (existingClusterStyle)
    headElement.removeChild(existingClusterStyle);
  headElement.appendChild(style);
}