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

  • Home
  • SEARCH
  • 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 8715785
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T05:55:46+00:00 2026-06-13T05:55:46+00:00

I have a chart in my Android app where I am using AChartEngine. I

  • 0

I have a chart in my Android app where I am using AChartEngine. I am having an issue with the second series not showing on the XY graph. I’m not seeing where I am going wrong with this. I have confirmed that all of the series data is there. The first series shows data over weeks. The second series should be a vertical line at a specific week. Here is the code:

    XYSeries seriesStat = new XYSeries("Standards");
    XYSeries seriesSelect = new XYSeries("Specific");
    for (dbBirdData bird : data)
    {
        seriesStat.add(bird.getage(), bird.getvalue());
        seriesSelect.add(age, bird.getvalue());
    }

    XYMultipleSeriesDataset dataset = new XYMultipleSeriesDataset();
    XYMultipleSeriesRenderer mRenderer = new XYMultipleSeriesRenderer();    
    XYSeriesRenderer renderer = new XYSeriesRenderer();
    XYSeriesRenderer renderer2 = new XYSeriesRenderer();

    dataset.addSeries(seriesStat);                  
    renderer.setColor(Color.YELLOW);
    mRenderer.addSeriesRenderer(renderer);


    dataset.addSeries(seriesSelect);        
    renderer2.setColor(Color.RED);      
    mRenderer.addSeriesRenderer(renderer2);


    mRenderer.setBackgroundColor(Color.BLACK);
    mRenderer.setChartTitle(title);
    mRenderer.setApplyBackgroundColor(true);
    mRenderer.setYLabelsAlign(Align.LEFT);      
    mRenderer.setXTitle("Week");
    mRenderer.setYTitle("Standard Value");
    mRenderer.setShowLegend(false);
    mRenderer.setXAxisMin(17);
    mRenderer.setXAxisMax(90.0);    

    return ChartFactory.getLineChartView(context, dataset, mRenderer);

Any help would be awesome, and thank you in advanced!!

  • 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-13T05:55:47+00:00Added an answer on June 13, 2026 at 5:55 am

    Your code is not complete, but I think I know what the problem is with the vertical line series. You are probably adding multiple points having the same X value. This is not supported in AChartEngine. When you need to do this, just add very close numbers on the X axis, but not exactly the same. Example: 10, 10.000000001 and so on.

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

Sidebar

Related Questions

Android: Hi, I'm using AchartEngine to display charts in my App I have tried
I have a chart with multiple Series. I am using the ChartColorPalette to set
I have an Android app that parses XML using SAXParser. Everything goes ok, excepting
I'm having a seemingly strange issue with my android app. Whether I call append
I have an Issue with Android 4 (ICS) My Bluetooth-App connecting to a Serial
I am using the XMPP Connection(using smack) for chat in android application.I have made
In my Android app I have a TabActivity, with 3 tabs. In one of
I have following compose view in my android app As you can see there
I'm using a chart taken from here http://writerbay.wordpress.com/2011/03/12/android-tutorial-displaying-chart-on-android/#comment-54 to draw a graph in android.
I am going to create an android chat app. Actually chat is going to

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.