0
我在我的web應用程序中使用GChart,無法找到關於在X和Y軸上變換文本顏色的任何信息。我的圖表正在StackPanel內的HorizontalPanel內顯示。這裏是我的GChart代碼,而不是在那裏顯示:GChart文本顏色和軸標籤
public class ChartTuple extends GChart {
public ChartTuple() {
super();
setChartTitle("<b></b>");
setChartSize(400,300);
addCurve();
for (double i = 01.24; i < 14; i++) {
System.out.println("Adding curve PT");
getCurve().addPoint(i, i);
}
getCurve().getSymbol().setSymbolType(SymbolType.VBAR_SOUTH);
getCurve().getSymbol().setBackgroundColor("red");
getCurve().getSymbol().setBorderColor("gray");
getCurve().getSymbol().setModelWidth(0.5);
getXAxis().setAxisLabel(
"<b>Latency Distribution (% objects, time in mm:ss)</b>");
getXAxis().setHasGridlines(false);
getYAxis().setAxisLabel("");
getYAxis().setHasGridlines(true);
addStyleName("chart-text");
System.out.println(getCurve());
System.out.println(this.toString());
setVisible(true);
} }
非常感謝你