本文整理汇总了Java中org.achartengine.model.MultipleCategorySeries.add方法的典型用法代码示例。如果您正苦于以下问题:Java MultipleCategorySeries.add方法的具体用法?Java MultipleCategorySeries.add怎么用?Java MultipleCategorySeries.add使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.achartengine.model.MultipleCategorySeries
的用法示例。
在下文中一共展示了MultipleCategorySeries.add方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getDonutMultiipleCategorySeries
import org.achartengine.model.MultipleCategorySeries; //导入方法依赖的package包/类
private MultipleCategorySeries getDonutMultiipleCategorySeries(double[] a) {
MultipleCategorySeries series = new MultipleCategorySeries("");
List<double[]> values = new ArrayList<double[]>();
values.add(a);
values.add(new double[] { 0, 0 });
List<String[]> titles = new ArrayList<String[]>();
titles.clear();
titles.add(new String[] { "P1", "p" });
titles.add(new String[] { "P2", "p" });
series.clear();
int k = 0;
for (double[] value : values) {
series.add(titles.get(k), value);
k++;
}
return series;
}
示例2: buildMultipleCategoryDataset
import org.achartengine.model.MultipleCategorySeries; //导入方法依赖的package包/类
/**
* Builds a multiple category series using the provided values.
*
* @param titles the series titles
* @param values the values
* @return the category series
*/
protected MultipleCategorySeries buildMultipleCategoryDataset(String title,
List<String[]> titles, List<double[]> values) {
MultipleCategorySeries series = new MultipleCategorySeries(title);
int k = 0;
for (double[] value : values) {
series.add(2007 + k + "", titles.get(k), value);
k++;
}
return series;
}
示例3: buildMultipleCategoryDataset
import org.achartengine.model.MultipleCategorySeries; //导入方法依赖的package包/类
/**
* Builds a multiple category series using the provided values.
*
* @param titles
* the series titles
* @param values
* the values
* @return the category series
*/
protected MultipleCategorySeries buildMultipleCategoryDataset(String title,
List<String[]> titles, List<double[]> values) {
MultipleCategorySeries series = new MultipleCategorySeries(title);
int k = 0;
for (double[] value : values) {
series.add(2007 + k + "", titles.get(k), value);
k++;
}
return series;
}