當前位置: 首頁>>代碼示例>>Java>>正文


Java PointStyle.POINT屬性代碼示例

本文整理匯總了Java中org.achartengine.chart.PointStyle.POINT屬性的典型用法代碼示例。如果您正苦於以下問題:Java PointStyle.POINT屬性的具體用法?Java PointStyle.POINT怎麽用?Java PointStyle.POINT使用的例子?那麽, 這裏精選的屬性代碼示例或許可以為您提供幫助。您也可以進一步了解該屬性所在org.achartengine.chart.PointStyle的用法示例。


在下文中一共展示了PointStyle.POINT屬性的11個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: execute

/**
 * Executes the chart demo.
 * @param context the context
 * @return the built intent
 */
public Intent execute(Context context) {
  String[] titles = new String[] { "sin", "cos" };
  List<double[]> x = new ArrayList<double[]>();
  List<double[]> values = new ArrayList<double[]>();
  int step = 4;
  int count = 360 / step + 1;
  x.add(new double[count]);
  x.add(new double[count]);
  double[] sinValues = new double[count];
  double[] cosValues = new double[count];
  values.add(sinValues);
  values.add(cosValues);
  for (int i = 0; i < count; i++) {
    int angle = i * step;
    x.get(0)[i] = angle;
    x.get(1)[i] = angle;
    double rAngle = Math.toRadians(angle);
    sinValues[i] = Math.sin(rAngle);
    cosValues[i] = Math.cos(rAngle);
  }
  int [] colors = new int[] { Color.BLUE, Color.CYAN };
  PointStyle[] styles = new PointStyle[] { PointStyle.POINT, PointStyle.POINT };
  XYMultipleSeriesRenderer renderer = buildRenderer(colors, styles);
  setChartSettings(renderer, "Trigonometric functions", "X (in degrees)", "Y", 0, 360, -1, 1,
      Color.GRAY, Color.LTGRAY);
  renderer.setXLabels(20);
  renderer.setYLabels(10);
  return ChartFactory.getLineChartIntent(context, buildDataset(titles, x, values), renderer);
}
 
開發者ID:ddanny,項目名稱:achartengine,代碼行數:34,代碼來源:TrigonometricFunctionsChart.java

示例2: XYSeriesRenderer

public XYSeriesRenderer()
{
    a = false;
    b = new ArrayList();
    c = PointStyle.POINT;
    d = 1.0F;
    e = 1.0F;
}
 
開發者ID:vishnudevk,項目名稱:MiBandDecompiled,代碼行數:8,代碼來源:XYSeriesRenderer.java

示例3: execute

/**
 * Executes the chart demo.
 * 
 * @param context the context
 * @return the built intent
 */
public Intent execute(Context context) {
  String[] titles = new String[] { "Sales growth January 1995 to December 2000" };
  List<Date[]> dates = new ArrayList<Date[]>();
  List<double[]> values = new ArrayList<double[]>();
  Date[] dateValues = new Date[] { new Date(95, 0, 1), new Date(95, 3, 1), new Date(95, 6, 1),
      new Date(95, 9, 1), new Date(96, 0, 1), new Date(96, 3, 1), new Date(96, 6, 1),
      new Date(96, 9, 1), new Date(97, 0, 1), new Date(97, 3, 1), new Date(97, 6, 1),
      new Date(97, 9, 1), new Date(98, 0, 1), new Date(98, 3, 1), new Date(98, 6, 1),
      new Date(98, 9, 1), new Date(99, 0, 1), new Date(99, 3, 1), new Date(99, 6, 1),
      new Date(99, 9, 1), new Date(100, 0, 1), new Date(100, 3, 1), new Date(100, 6, 1),
      new Date(100, 9, 1), new Date(100, 11, 1) };
  dates.add(dateValues);

  values.add(new double[] { 4.9, 5.3, 3.2, 4.5, 6.5, 4.7, 5.8, 4.3, 4, 2.3, -0.5, -2.9, 3.2, 5.5,
      4.6, 9.4, 4.3, 1.2, 0, 0.4, 4.5, 3.4, 4.5, 4.3, 4 });
  int[] colors = new int[] { Color.BLUE };
  PointStyle[] styles = new PointStyle[] { PointStyle.POINT };
  XYMultipleSeriesRenderer renderer = buildRenderer(colors, styles);
  setChartSettings(renderer, "Sales growth", "Date", "%", dateValues[0].getTime(),
      dateValues[dateValues.length - 1].getTime(), -4, 11, Color.GRAY, Color.LTGRAY);
  renderer.setYLabels(10);
  renderer.setXRoundedLabels(false);
  XYSeriesRenderer xyRenderer = (XYSeriesRenderer) renderer.getSeriesRendererAt(0);
  FillOutsideLine fill = FillOutsideLine.BOUNDS_BELOW;
  fill.setColor(Color.MAGENTA);
  xyRenderer.addFillOutsideLine(fill);
  fill = FillOutsideLine.BOUNDS_ABOVE;
  fill.setColor(Color.GREEN);
  xyRenderer.addFillOutsideLine(fill);

  return ChartFactory.getTimeChartIntent(context, buildDateDataset(titles, dates, values),
      renderer, "MMM yyyy");
}
 
開發者ID:InQBarna,項目名稱:AChartEngine,代碼行數:39,代碼來源:SalesGrowthChart.java

示例4: execute

/**
 * Executes the chart demo.
 * 
 * @param context the context
 * @return the built intent
 */
public Intent execute(Context context) {
  String[] titles = new String[] { "Sales growth January 1995 to December 2000" };
  List<Date[]> dates = new ArrayList<Date[]>();
  List<double[]> values = new ArrayList<double[]>();
  Date[] dateValues = new Date[] { new Date(95, 0, 1), new Date(95, 3, 1), new Date(95, 6, 1),
      new Date(95, 9, 1), new Date(96, 0, 1), new Date(96, 3, 1), new Date(96, 6, 1),
      new Date(96, 9, 1), new Date(97, 0, 1), new Date(97, 3, 1), new Date(97, 6, 1),
      new Date(97, 9, 1), new Date(98, 0, 1), new Date(98, 3, 1), new Date(98, 6, 1),
      new Date(98, 9, 1), new Date(99, 0, 1), new Date(99, 3, 1), new Date(99, 6, 1),
      new Date(99, 9, 1), new Date(100, 0, 1), new Date(100, 3, 1), new Date(100, 6, 1),
      new Date(100, 9, 1), new Date(100, 11, 1) };
  dates.add(dateValues);

  values.add(new double[] { 4.9, 5.3, 3.2, 4.5, 6.5, 4.7, 5.8, 4.3, 4, 2.3, -0.5, -2.9, 3.2, 5.5,
      4.6, 9.4, 4.3, 1.2, 0, 0.4, 4.5, 3.4, 4.5, 4.3, 4 });
  int[] colors = new int[] { Color.BLUE };
  PointStyle[] styles = new PointStyle[] { PointStyle.POINT };
  XYMultipleSeriesRenderer renderer = buildRenderer(colors, styles);
  setChartSettings(renderer, "Sales growth", "Date", "%", dateValues[0].getTime(),
      dateValues[dateValues.length - 1].getTime(), -4, 11, Color.GRAY, Color.LTGRAY);
  renderer.setYLabels(10);
  renderer.setXLabelMinimumDistance(3. * 30. * 24. * 60. * 60. * 1000.);
  renderer.setYLabelMinimumDistance(0.01, 0);
  renderer.setXZoomMax(3. * 30. * 24. * 60. * 60. * 1000.);
  XYSeriesRenderer xyRenderer = (XYSeriesRenderer) renderer.getSeriesRendererAt(0);
  FillOutsideLine f = FillOutsideLine.BELOW;
  f.setGradient(true);
  f.setColor(0x80000000);
  f.setColor2(0xff0000ff);
  xyRenderer.addFillOutsideLine(f);
  xyRenderer.setPointStyle(PointStyle.CIRCLE);
  xyRenderer.setPointStrokeWidth(3);
  return ChartFactory.getTimeChartIntent(context, buildDateDataset(titles, dates, values),
      renderer, "MMM yyyy");
}
 
開發者ID:InQBarna,項目名稱:AChartEngine,代碼行數:41,代碼來源:SalesGrowthStyledChart.java

示例5: renderGraph

public void renderGraph(Map<Long, Integer> scores){
   removeAllViews();
   String[] titles = new String[] { "" };
   List<Date[]> dates = new ArrayList<Date[]>();
   List<double[]> values = new ArrayList<double[]>();

   int maxScore = 100;
   Set<Long> keys = scores.keySet();
   int i = keys.size() - 1;
   if (0 > i){ return; }
   Date[] dateValues = new Date[keys.size()];
   double[] scoreValues = new double[keys.size()];
   for (Long when : keys){
      dateValues[i] = new Date(when);
      int score = scores.get(when);
      if (score > maxScore){ maxScore = score; }
      scoreValues[i--] = score;

      // store the last minimum date for later use by QamarGraphActivity
      mMinimumDate = when;
   }

   dates.add(dateValues);
   values.add(scoreValues);

   int[] colors = new int[] { Color.BLUE };
   PointStyle[] styles = new PointStyle[] { PointStyle.POINT };
   XYMultipleSeriesRenderer renderer = buildRenderer(colors, styles);
   setChartSettings(renderer, dateValues[0].getTime(),
           dateValues[dateValues.length - 1].getTime(),
           0, maxScore + 100, Color.DKGRAY);
   renderer.setYLabels(10);
   renderer.setPanEnabled(false, false);
   renderer.setZoomEnabled(false, false);
   View view = ChartFactory.getTimeChartView(mContext,
           buildDateDataset(titles, dates, values),
           renderer, "MMM yyyy");

   addView(view, ViewGroup.LayoutParams.MATCH_PARENT,
           ViewGroup.LayoutParams.MATCH_PARENT);
}
 
開發者ID:batoulapps,項目名稱:qamardeen-android,代碼行數:41,代碼來源:GraphWidget.java

示例6: execute

/**
 * Executes the chart demo.
 * 
 * @param context the context
 * @return the built intent
 */
public Intent execute(Context context) {
  String[] titles = new String[] { "Sales for 2008", "Sales for 2007",
      "Difference between 2008 and 2007 sales" };
  List<double[]> values = new ArrayList<double[]>();
  values.add(new double[] { 14230, 12300, 14240, 15244, 14900, 12200, 11030, 12000, 12500, 15500,
      14600, 15000 });
  values.add(new double[] { 10230, 10900, 11240, 12540, 13500, 14200, 12530, 11200, 10500, 12500,
      11600, 13500 });
  int length = values.get(0).length;
  double[] diff = new double[length];
  for (int i = 0; i < length; i++) {
    diff[i] = values.get(0)[i] - values.get(1)[i];
  }
  values.add(diff);
  int[] colors = new int[] { Color.BLUE, Color.CYAN, Color.GREEN };
  PointStyle[] styles = new PointStyle[] { PointStyle.POINT, PointStyle.POINT, PointStyle.POINT };
  XYMultipleSeriesRenderer renderer = buildRenderer(colors, styles);
  setChartSettings(renderer, "Monthly sales in the last 2 years", "Month", "Units sold", 0.75,
      12.25, -5000, 19000, Color.GRAY, Color.LTGRAY);
  renderer.setXLabels(12);
  renderer.setYLabels(10);
  renderer.setChartTitleTextSize(20);
  renderer.setTextTypeface("sans_serif", Typeface.BOLD);
  renderer.setLabelsTextSize(14f);
  renderer.setAxisTitleTextSize(15);
  renderer.setLegendTextSize(15);
  length = renderer.getSeriesRendererCount();

  for (int i = 0; i < length; i++) {
    XYSeriesRenderer seriesRenderer = (XYSeriesRenderer) renderer.getSeriesRendererAt(i);
    if (i == length - 1) {
      FillOutsideLine fill = new FillOutsideLine(FillOutsideLine.Type.BOUNDS_ALL);
      fill.setColor(Color.GREEN);
      seriesRenderer.addFillOutsideLine(fill);
    }
    seriesRenderer.setLineWidth(2.5f);
    seriesRenderer.setDisplayChartValues(true);
    seriesRenderer.setChartValuesTextSize(10f);
  }
  return ChartFactory.getCubicLineChartIntent(context, buildBarDataset(titles, values), renderer,
      0.5f);
}
 
開發者ID:ddanny,項目名稱:achartengine,代碼行數:48,代碼來源:SalesComparisonChart.java

示例7: execute

/**
 * Executes the chart demo.
 * 
 * @param context the context
 * @return the built intent
 */
public Intent execute(Context context) {
  String[] titles = new String[] { "Air temperature" };
  List<double[]> x = new ArrayList<double[]>();
  x.add(new double[] { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 });
  List<double[]> values = new ArrayList<double[]>();
  values.add(new double[] { 12.3, 12.5, 13.8, 16.8, 20.4, 24.4, 26.4, 26.1, 23.6, 20.3, 17.2,
      13.9 });
  int[] colors = new int[] { Color.BLUE, Color.YELLOW };
  PointStyle[] styles = new PointStyle[] { PointStyle.POINT, PointStyle.POINT };
  XYMultipleSeriesRenderer renderer = new XYMultipleSeriesRenderer(2);
  setRenderer(renderer, colors, styles);
  int length = renderer.getSeriesRendererCount();
  for (int i = 0; i < length; i++) {
    XYSeriesRenderer r = (XYSeriesRenderer) renderer.getSeriesRendererAt(i);
    r.setLineWidth(3f);
  }
  setChartSettings(renderer, "Average temperature", "Month", "Temperature", 0.5, 12.5, 0, 32,
      Color.LTGRAY, Color.LTGRAY);
  renderer.setXLabels(12);
  renderer.setYLabels(10);
  renderer.setShowGrid(true);
  renderer.setXLabelsAlign(Align.RIGHT);
  renderer.setYLabelsAlign(Align.RIGHT);
  renderer.setZoomButtonsVisible(true);
  renderer.setPanLimits(new double[] { -10, 20, -10, 40 });
  renderer.setZoomLimits(new double[] { -10, 20, -10, 40 });
  renderer.setZoomRate(1.05f);
  renderer.setLabelsColor(Color.WHITE);
  renderer.setXLabelsColor(Color.GREEN);
  renderer.setYLabelsColor(0, colors[0]);
  renderer.setYLabelsColor(1, colors[1]);

  renderer.setYTitle("Hours", 1);
  renderer.setYAxisAlign(Align.RIGHT, 1);
  renderer.setYLabelsAlign(Align.LEFT, 1);
  renderer.setGridColor(colors[0], 0);
  renderer.setGridColor(colors[1], 1);

  XYMultipleSeriesDataset dataset = buildDataset(titles, x, values);
  x.clear();
  x.add(new double[] { -1, 0, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 });
  values.clear();
  values.add(new double[] { 4.3, 4.9, 5.9, 8.8, 10.8, 11.9, 13.6, 12.8, 11.4, 9.5, 7.5, 5.5 });
  addXYSeries(dataset, new String[] { "Sunshine hours" }, x, values, 1);

  Intent intent = ChartFactory.getCubicLineChartIntent(context, dataset, renderer, 0.3f,
      "Average temperature");
  return intent;
}
 
開發者ID:ddanny,項目名稱:achartengine,代碼行數:55,代碼來源:MultipleTemperatureChart.java

示例8: execute

/**
 * Executes the chart demo.
 * 
 * @param context the context
 * @return the built intent
 */
public Intent execute(Context context) {
  String[] titles = new String[] { "New tickets", "Fixed tickets" };
  List<Date[]> dates = new ArrayList<Date[]>();
  List<double[]> values = new ArrayList<double[]>();
  int length = titles.length;
  for (int i = 0; i < length; i++) {
    dates.add(new Date[12]);
    dates.get(i)[0] = new Date(108, 9, 1);
    dates.get(i)[1] = new Date(108, 9, 8);
    dates.get(i)[2] = new Date(108, 9, 15);
    dates.get(i)[3] = new Date(108, 9, 22);
    dates.get(i)[4] = new Date(108, 9, 29);
    dates.get(i)[5] = new Date(108, 10, 5);
    dates.get(i)[6] = new Date(108, 10, 12);
    dates.get(i)[7] = new Date(108, 10, 19);
    dates.get(i)[8] = new Date(108, 10, 26);
    dates.get(i)[9] = new Date(108, 11, 3);
    dates.get(i)[10] = new Date(108, 11, 10);
    dates.get(i)[11] = new Date(108, 11, 17);
  }
  values.add(new double[] { 142, 123, 142, 152, 149, 122, 110, 120, 125, 155, 146, 150 });
  values.add(new double[] { 102, 90, 112, 105, 125, 112, 125, 112, 105, 115, 116, 135 });
  length = values.get(0).length;
  int[] colors = new int[] { Color.BLUE, Color.GREEN };
  PointStyle[] styles = new PointStyle[] { PointStyle.POINT, PointStyle.POINT };
  XYMultipleSeriesRenderer renderer = buildRenderer(colors, styles);
  setChartSettings(renderer, "Project work status", "Date", "Tickets", dates.get(0)[0].getTime(),
      dates.get(0)[11].getTime(), 50, 190, Color.GRAY, Color.LTGRAY);
  renderer.setXLabels(0);
  renderer.setYLabels(10);
  renderer.addYTextLabel(100, "test");
  length = renderer.getSeriesRendererCount();
  for (int i = 0; i < length; i++) {
    XYSeriesRenderer seriesRenderer = (XYSeriesRenderer) renderer.getSeriesRendererAt(i);
    seriesRenderer.setDisplayChartValues(true);
  }
  renderer.setXRoundedLabels(false);
  return ChartFactory.getTimeChartIntent(context, buildDateDataset(titles, dates, values),
      renderer, "MM/dd/yyyy");
}
 
開發者ID:ddanny,項目名稱:achartengine,代碼行數:46,代碼來源:ProjectStatusChart.java

示例9: execute

/**
 * Executes the chart demo.
 * 
 * @param context the context
 * @return the built intent
 */
public Intent execute(Context context) {
  String[] titles = new String[] { "New tickets", "Fixed tickets" };
  List<Date[]> dates = new ArrayList<Date[]>();
  List<double[]> values = new ArrayList<double[]>();
  int length = titles.length;
  for (int i = 0; i < length; i++) {
    dates.add(new Date[12]);
    dates.get(i)[0] = new Date(108, 9, 1);
    dates.get(i)[1] = new Date(108, 9, 8);
    dates.get(i)[2] = new Date(108, 9, 15);
    dates.get(i)[3] = new Date(108, 9, 22);
    dates.get(i)[4] = new Date(108, 9, 29);
    dates.get(i)[5] = new Date(108, 10, 5);
    dates.get(i)[6] = new Date(108, 10, 12);
    dates.get(i)[7] = new Date(108, 10, 19);
    dates.get(i)[8] = new Date(108, 10, 26);
    dates.get(i)[9] = new Date(108, 11, 3);
    dates.get(i)[10] = new Date(108, 11, 10);
    dates.get(i)[11] = new Date(108, 11, 17);
  }
  values.add(new double[] { 142, 123, 142, 152, 149, 122, 110, 120, 125, 155, 146, 150 });
  values.add(new double[] { 102, 90, 112, 105, 125, 112, 125, 112, 105, 115, 116, 135 });
  length = values.get(0).length;
  int[] colors = new int[] { Color.BLUE, Color.GREEN };
  PointStyle[] styles = new PointStyle[] { PointStyle.POINT, PointStyle.POINT };
  XYMultipleSeriesRenderer renderer = buildRenderer(colors, styles);
  setChartSettings(renderer, "Project work status", "Date", "Tickets", dates.get(0)[0].getTime(),
      dates.get(0)[11].getTime(), 50, 190, Color.GRAY, Color.LTGRAY);
  renderer.setXLabels(0);
  renderer.setYLabels(10);
  renderer.addYTextLabel(100, "test");
  length = renderer.getSeriesRendererCount();
  for (int i = 0; i < length; i++) {
    SimpleSeriesRenderer seriesRenderer = renderer.getSeriesRendererAt(i);
    seriesRenderer.setDisplayChartValues(true);
  }
  renderer.setXRoundedLabels(false);
  return ChartFactory.getTimeChartIntent(context, buildDateDataset(titles, dates, values),
      renderer, "MM/dd/yyyy");
}
 
開發者ID:SamKnows,項目名稱:skandroid-core,代碼行數:46,代碼來源:ProjectStatusChart.java

示例10: execute

@Override
	public Intent execute(Context context) {
		String[] titles = new String[] {"candle"};
	    List<double[]> x = new ArrayList<double[]>();
	    x.add(timestamp);
//	    for (int i = 0; i < titles.length; i++) {
//	      x.add(new double[] { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 });
//	    }
	   // List<double[]> values = new ArrayList<double[]>();
//	    values.add(new double[] { 12.3, 12.5, 13.8, 16.8, 20.4, 24.4, 26.4, 26.1, 23.6, 20.3, 17.2,
//	        13.9 });
//	    values.add(new double[] { 10, 10, 12, 15, 20, 24, 26, 26, 23, 18, 14, 11 });
//	    values.add(new double[] { 5, 5.3, 8, 12, 17, 22, 24.2, 24, 19, 15, 9, 6 });
//	    values.add(new double[] { 9, 10, 11, 15, 19, 23, 26, 25, 22, 18, 13, 10 });
	   // values.add(open);
	    //values.add(close);
	    //values.add(high);
	    //values.add(high);
	    
	    int[] colors = new int[] {Color.RED };
	    PointStyle[] styles = new PointStyle[] {PointStyle.POINT};
	    XYMultipleSeriesRenderer renderer = buildRenderer(colors, styles);
	    renderer.setOrientation(Orientation.HORIZONTAL);
	    int length = renderer.getSeriesRendererCount();
	    for (int i = 0; i < length; i++) {
	      ((XYSeriesRenderer) renderer.getSeriesRendererAt(i)).setFillPoints(true);
	    }
	    setChartSettings(renderer, "Candle Stick", "Time", "stockprize",1325648758000f, 1325671305000f, 2800, 2900,Color.LTGRAY, Color.LTGRAY);
	    renderer.setXLabels(12);
	    renderer.setYLabels(10);
	    renderer.setShowGrid(true);
	    renderer.setXLabelsAlign(Align.RIGHT);
	    renderer.setYLabelsAlign(Align.LEFT);
	    renderer.setShowLegend(false);
	   // renderer.setZoomButtonsVisible(false);
	   // renderer.setYAxisAlign(Align.RIGHT, 1);
	    renderer.setZoomButtonsVisible(true);
	    renderer.setPanLimits(new double[] { 1325648758000f, 1325671305000f, 2800, 2800 });
	    renderer.setZoomLimits(new double[] { 1325648758000f, 1325671305000f, 2800, 2800 });

	    XYMultipleSeriesDataset dataset = buildDataset(titles, x, values);
	   // XYSeries series = dataset.getSeriesAt(0);
	   // series.addAnnotation("Vacation", 6, 30);
	    Intent intent = ChartFactory.getCandleStickChartIntent(context, dataset, renderer,
	        "Candle Stick");
	    return intent;
	}
 
開發者ID:nasif,項目名稱:android-trade-chart,代碼行數:47,代碼來源:CandleStickChartDemo.java

示例11: execute

/**
 * Executes the chart demo.
 * 
 * @param context the context
 * @return the built intent
 */
public Intent execute(Context context) {
  String[] titles = new String[] { "Sales for 2008", "Sales for 2007",
      "Difference between 2008 and 2007 sales" };
  List<double[]> values = new ArrayList<double[]>();
  values.add(new double[] { 14230, 12300, 14240, 15244, 14900, 12200, 11030, 12000, 12500, 15500,
      14600, 15000 });
  values.add(new double[] { 10230, 10900, 11240, 12540, 13500, 14200, 12530, 11200, 10500, 12500,
      11600, 13500 });
  int length = values.get(0).length;
  double[] diff = new double[length];
  for (int i = 0; i < length; i++) {
    diff[i] = values.get(0)[i] - values.get(1)[i];
  }
  values.add(diff);
  int[] colors = new int[] { Color.BLUE, Color.CYAN, Color.GREEN };
  PointStyle[] styles = new PointStyle[] { PointStyle.POINT, PointStyle.POINT, PointStyle.POINT };
  XYMultipleSeriesRenderer renderer = buildRenderer(colors, styles);
  setChartSettings(renderer, "Monthly sales in the last 2 years", "Month", "Units sold", 0.75,
      12.25, -5000, 19000, Color.GRAY, Color.LTGRAY);
  renderer.setXLabels(12);
  renderer.setYLabels(10);
  renderer.setChartTitleTextSize(20);
  renderer.setTextTypeface("sans_serif", Typeface.BOLD);
  renderer.setLabelsTextSize(14f);
  renderer.setAxisTitleTextSize(15);
  renderer.setLegendTextSize(15);
  length = renderer.getSeriesRendererCount();

  for (int i = 0; i < length; i++) {
    XYSeriesRenderer seriesRenderer = (XYSeriesRenderer) renderer.getSeriesRendererAt(i);
    if (i == length - 1) {
      FillOutsideLine fill = FillOutsideLine.BOUNDS_ALL;
      fill.setColor(Color.GREEN);
      seriesRenderer.addFillOutsideLine(fill);
    }
    seriesRenderer.setLineWidth(2.5f);
    seriesRenderer.setDisplayChartValues(true);
    seriesRenderer.setChartValuesTextSize(10f);
  }
  return ChartFactory.getCubicLineChartIntent(context, buildBarDataset(titles, values), renderer,
      0.5f);
}
 
開發者ID:InQBarna,項目名稱:AChartEngine,代碼行數:48,代碼來源:SalesComparisonChart.java


注:本文中的org.achartengine.chart.PointStyle.POINT屬性示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。