2017-02-22 4 views
1

Wie ändere ich die Schriftgröße Google Chart Tooltip? [Dies ist, was ich bisher versucht: https://jsfiddle.net/Albion87/ujpv8oep/3/] Dies sind die eingestellten Optionen, die ich habe ..Wie ändert man die Schriftgröße von Google Chart Tooltip

// Set chart options 
var options = { 
    isStacked: true, 
    tooltip: { textStyle: { fontName: 'verdana', fontSize: 7 } },  
    width: 800, 
    height: 600, 
    chart: { 
     title: 'Year-by-year coffee consumption', 
     subtitle: 'This data is not real' 
    },  
    vAxis: { 
     viewWindow: { 
      min: 0, 
      max: 100 
     } 
    }, 
    legend: { position: 'left', alignment: 'start' }, 
    series: { 
     2: { 
      targetAxisIndex: 1 
     }, 
     3: { 
      targetAxisIndex: 1 
     } 
    }, 
    backgroundColor: {fill: 'transparent'}, 
    chartArea: { 
     backgroundColor: 'transparent' 
    } 
}; 

enter image description here

Antwort

0

das Problem ist Material Diagramm ...

dort sind mehrere Optionen, die einfach nicht mit Material Diagramme,
einschließlich

arbeiten 0
tooltip.isHtml 
tooltip.showColorCode 
tooltip.textStyle 
tooltip.trigger 

siehe ->Tracking Issue for Material Chart Feature Parity #2143


empfehlen Kern Diagramm mit folgenden Option versuchen ...

theme: 'material' 

Material Diagramm ->google.charts.Bar - packages: ['bar']

Kern chart ->google.visualization.ColumnChart - packages: ['corechart']

+0

irgendein Glück mit dieser Frage? – WhiteHat

Verwandte Themen