本文整理汇总了Java中org.achartengine.model.XYValueSeries类的典型用法代码示例。如果您正苦于以下问题:Java XYValueSeries类的具体用法?Java XYValueSeries怎么用?Java XYValueSeries使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
XYValueSeries类属于org.achartengine.model包,在下文中一共展示了XYValueSeries类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: execute
import org.achartengine.model.XYValueSeries; //导入依赖的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");
}
开发者ID:ddanny,项目名称:achartengine,代码行数:44,代码来源:ProjectStatusBubbleChart.java
示例2: clickableAreasForPoints
import org.achartengine.model.XYValueSeries; //导入依赖的package包/类
protected ClickableArea[] clickableAreasForPoints(List list, List list1, float f, int i, int j)
{
int k = list.size();
XYValueSeries xyvalueseries = (XYValueSeries)mDataset.getSeriesAt(i);
double d = 20D / xyvalueseries.getMaxValue();
ClickableArea aclickablearea[] = new ClickableArea[k / 2];
for (int l = 0; l < k; l += 2)
{
double d1 = 2D + d * xyvalueseries.getValue(j + l / 2);
aclickablearea[l / 2] = new ClickableArea(new RectF(((Float)list.get(l)).floatValue() - (float)d1, ((Float)list.get(l + 1)).floatValue() - (float)d1, ((Float)list.get(l)).floatValue() + (float)d1, ((Float)list.get(l + 1)).floatValue() + (float)d1), ((Double)list1.get(l)).doubleValue(), ((Double)list1.get(l + 1)).doubleValue());
}
return aclickablearea;
}
开发者ID:vishnudevk,项目名称:MiBandDecompiled,代码行数:15,代码来源:BubbleChart.java
示例3: drawSeries
import org.achartengine.model.XYValueSeries; //导入依赖的package包/类
public void drawSeries(Canvas canvas, Paint paint, List list, SimpleSeriesRenderer simpleseriesrenderer, float f, int i, int j)
{
paint.setColor(((XYSeriesRenderer)simpleseriesrenderer).getColor());
paint.setStyle(android.graphics.Paint.Style.FILL);
int k = list.size();
XYValueSeries xyvalueseries = (XYValueSeries)mDataset.getSeriesAt(i);
double d = 20D / xyvalueseries.getMaxValue();
for (int l = 0; l < k; l += 2)
{
double d1 = 2D + d * xyvalueseries.getValue(j + l / 2);
a(canvas, paint, ((Float)list.get(l)).floatValue(), ((Float)list.get(l + 1)).floatValue(), (float)d1);
}
}
开发者ID:vishnudevk,项目名称:MiBandDecompiled,代码行数:15,代码来源:BubbleChart.java
示例4: execute
import org.achartengine.model.XYValueSeries; //导入依赖的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");
}
开发者ID:InQBarna,项目名称:AChartEngine,代码行数:44,代码来源:ProjectStatusBubbleChart.java
注:本文中的org.achartengine.model.XYValueSeries类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论