List of usage examples for com.google.gwt.visualization.client.visualizations.corechart TextStyle setFontName
public final native void setFontName(String fontName) ;
From source file:com.java33.vizpres.client.view.visualization.GoogleCharts.java
License:Open Source License
protected static Options makeOptions(final int width, final int height) { final String fontName = "'Cabin', sans-serif"; final Options options = BarChart.createOptions(); final TextStyle ts = TextStyle.create(); ts.setFontName(fontName); ts.setFontSize(14);//from ww w . j a va2s. com options.setTitleTextStyle(ts); options.setWidth(width); options.setHeight(height); options.setFontName(fontName); options.setFontSize(10); options.setBackgroundColor("#eef7de"); final AxisOptions hAxisOptions = AxisOptions.create(); hAxisOptions.setMinValue(0); hAxisOptions.setMaxValue(100); hAxisOptions.setTitle("Percent"); options.setHAxisOptions(hAxisOptions); options.setTitle("Google Charts Example"); return options; }