本文整理匯總了Java中org.achartengine.ChartFactory.getBubbleChartIntent方法的典型用法代碼示例。如果您正苦於以下問題:Java ChartFactory.getBubbleChartIntent方法的具體用法?Java ChartFactory.getBubbleChartIntent怎麽用?Java ChartFactory.getBubbleChartIntent使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類org.achartengine.ChartFactory
的用法示例。
在下文中一共展示了ChartFactory.getBubbleChartIntent方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: execute
import org.achartengine.ChartFactory; //導入方法依賴的package包/類
/**
* Executes the chart demo.
*
* @param context the context
* @return the built intent
*/
public Intent execute(Context context) {
XYMultipleSeriesDataset series = new XYMultipleSeriesDataset();
XYValueSeries newTicketSeries = new XYValueSeries("New Tickets");
newTicketSeries.add(1f, 2, 14);
newTicketSeries.add(2f, 2, 12);
newTicketSeries.add(3f, 2, 18);
newTicketSeries.add(4f, 2, 5);
newTicketSeries.add(5f, 2, 1);
series.addSeries(newTicketSeries);
XYValueSeries fixedTicketSeries = new XYValueSeries("Fixed Tickets");
fixedTicketSeries.add(1f, 1, 7);
fixedTicketSeries.add(2f, 1, 4);
fixedTicketSeries.add(3f, 1, 18);
fixedTicketSeries.add(4f, 1, 3);
fixedTicketSeries.add(5f, 1, 1);
series.addSeries(fixedTicketSeries);
XYMultipleSeriesRenderer renderer = new XYMultipleSeriesRenderer();
renderer.setAxisTitleTextSize(16);
renderer.setChartTitleTextSize(20);
renderer.setLabelsTextSize(15);
renderer.setLegendTextSize(15);
renderer.setMargins(new int[] { 20, 30, 15, 0 });
XYSeriesRenderer newTicketRenderer = new XYSeriesRenderer();
newTicketRenderer.setColor(Color.BLUE);
renderer.addSeriesRenderer(newTicketRenderer);
XYSeriesRenderer fixedTicketRenderer = new XYSeriesRenderer();
fixedTicketRenderer.setColor(Color.GREEN);
renderer.addSeriesRenderer(fixedTicketRenderer);
setChartSettings(renderer, "Project work status", "Priority", "", 0.5, 5.5, 0, 5, Color.GRAY,
Color.LTGRAY);
renderer.setXLabels(7);
renderer.setYLabels(0);
renderer.setShowGrid(false);
return ChartFactory.getBubbleChartIntent(context, series, renderer, "Project tickets");
}
示例2: execute
import org.achartengine.ChartFactory; //導入方法依賴的package包/類
/**
* Executes the chart demo.
*
* @param context the context
* @return the built intent
*/
public Intent execute(Context context) {
XYMultipleSeriesDataset series = new XYMultipleSeriesDataset();
XYValueSeries newTicketSeries = new XYValueSeries("New Tickets");
newTicketSeries.add(1, 2, 14);
newTicketSeries.add(2, 2, 12);
newTicketSeries.add(3, 2, 18);
newTicketSeries.add(4, 2, 5);
newTicketSeries.add(5, 2, 1);
series.addSeries(newTicketSeries);
XYValueSeries fixedTicketSeries = new XYValueSeries("Fixed Tickets");
fixedTicketSeries.add(1, 1, 7);
fixedTicketSeries.add(2, 1, 4);
fixedTicketSeries.add(3, 1, 18);
fixedTicketSeries.add(4, 1, 3);
fixedTicketSeries.add(5, 1, 1);
series.addSeries(fixedTicketSeries);
XYMultipleSeriesRenderer renderer = new XYMultipleSeriesRenderer();
renderer.setAxisTitleTextSize(16);
renderer.setChartTitleTextSize(20);
renderer.setLabelsTextSize(15);
renderer.setLegendTextSize(15);
renderer.setMargins(new int[] { 20, 30, 15, 0 });
XYSeriesRenderer newTicketRenderer = new XYSeriesRenderer();
newTicketRenderer.setColor(Color.BLUE);
renderer.addSeriesRenderer(newTicketRenderer);
XYSeriesRenderer fixedTicketRenderer = new XYSeriesRenderer();
fixedTicketRenderer.setColor(Color.GREEN);
renderer.addSeriesRenderer(fixedTicketRenderer);
setChartSettings(renderer, "Project work status", "Priority", "", 0.5, 5.5, 0, 5, Color.GRAY,
Color.LTGRAY);
renderer.setXLabels(7);
renderer.setYLabels(0);
renderer.setShowGrid(false);
return ChartFactory.getBubbleChartIntent(context, series, renderer, "Project tickets");
}