Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9165087
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T14:50:00+00:00 2026-06-17T14:50:00+00:00

I am using Achartengine to generate a stacked bar graph. It works fine and

  • 0

I am using Achartengine to generate a stacked bar graph. It works fine and displays the values for the bottom portion of the bars. The thing is, sometimes I need to turn off some of the labels but now all of the labels. It looks like the software can either turn all labels on or all labels off.

setChartSettings(renderer, "Gym Attendance", "", "", 0.5, 12.5, 0,
            24000, Color.BLACK, Color.BLACK);
    renderer.getSeriesRendererAt(0).setDisplayChartValues(false);
    renderer.getSeriesRendererAt(1).setDisplayChartValues(true);
    renderer.setShowLegend(false);
    renderer.setMargins(new int[] { 80, 10, 60, 10 });
    renderer.addXTextLabel(1, "Rec. Hall" + "\n" + "(240 max.)");
    renderer.addXTextLabel(2, "White" + "\n" + "Building" + "\n"
            + "(210 max.)");
    renderer.addXTextLabel(3, "IM" + "\n" + "Building" + "\n" + "(60 max.)");
    renderer.addXTextLabel(4, "Fitness Loft" + "\n" + "(40 max.)");
    renderer.setXLabelsColor(Color.rgb(0, 0, 0));
    renderer.setYLabelsColor(0, Color.BLACK);
    renderer.setYLabels(10);
    renderer.setXLabels(0);
    renderer.setXAxisMin(0);
    renderer.setXAxisMax(5);
    renderer.setYAxisMin(0);
    renderer.setYAxisMax(250);
    renderer.setAxesColor(Color.BLACK);
    renderer.setXLabelsAlign(Align.CENTER);
    renderer.setYLabelsAlign(Align.LEFT);
    renderer.setPanEnabled(false, false);
    // renderer.setZoomEnabled(false);
    renderer.setZoomRate(1.1f);
    renderer.setBarSpacing(0.5f);
    renderer.setApplyBackgroundColor(true);
    renderer.getSeriesRendererAt(1).setGradientEnabled(true);
    renderer.getSeriesRendererAt(1).setGradientStart(0,
            Color.rgb(180, 180, 180));
    renderer.getSeriesRendererAt(1).setGradientStop(65,
            Color.rgb(25, 25, 112));
    renderer.setBackgroundColor(Color.rgb(220, 220, 220));
    renderer.setMarginsColor(Color.rgb(248, 248, 255));
    renderer.setOrientation(Orientation.HORIZONTAL);
    renderer.setZoomEnabled(false, false);

    return ChartFactory.getBarChartView(context,
            buildBarDataset(titles, values), renderer, Type.STACKED);

}

This is the problem line

renderer.getSeriesRendererAt(1).setDisplayChartValues(true);

I need to be able to turn the labels off for each member of the series.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T14:50:01+00:00Added an answer on June 17, 2026 at 2:50 pm

    You cannot turn on only some of the chart values. As long as they don’t overlap, they will all be displayed.

    However, please note that support for annotations has been recently added. You can do something like:

    series.addAnnotation("text", x, y);
    

    This way you can add only the annotations you want.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am Using achartEngine to plot stacked bar-graph.My plot for X an Y Values
Iam using AChartEngine Stacked Bar Chart. Can i add spacing between X-Axis Title and
Actually, in my app, I have created a graph using achartEngine . In these
I'm using aChartEngine to display a simple bar chart. I would like to add
I am Using achartengine api for drawing piechart. Defaultly the Piechart displays in the
I am working on an android app and using AChartEngine for Charting. The Bar
I am using AchartEngine for my android phone applications. Everything looks fine but the
I am right now trying to create a bar-chart in android using achartengine,hopefully i
I'm using the chart framework achartengine to create a simple horizontal bar chart, however
I am using achartengine for creating piecharts in android. Now everything is going fine

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.