中央の正方形が暗い色で、その周りの正方形が遠くなるにつれてゆっくりと白にフェードする ColorGrid グラフを作成しようとしています。私は TeeChart を初めて使用し、例を確認しました。series.fillSampleValues() を置き換えようとしていますが、series.add() に含める値がわかりません。ColorGrid の series.add() のパラメータは何ですか?
これが私のコードです
final LinearLayout ll = (LinearLayout) findViewById( R.id.samplegraphlayout );
TChart chart = new TChart( ll.getContext() );
ll.addView( chart );
Series series = null;
try {
series = Series.createNewSeries(chart.getChart(), ColorGrid.class, null);
} catch (Exception e) {
e.printStackTrace();
}
series.fillSampleValues();
chart.addSeries(series);
chart.getLegend().setAlignment(LegendAlignment.BOTTOM);
chart.getHeader().setText("ColorGrid Series");
chart.getHeader().getFont().setSize(14);