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 9127579
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T07:18:51+00:00 2026-06-17T07:18:51+00:00

I am trying to create a line graph with six lines, and two Y

  • 0

I am trying to create a line graph with six lines, and two Y Axis. All six lines will use the same X-axis, but 3 lines should be graphed with respect to one Y-axis, and the other 3 lines graphed with respect to the other Y-axis.

I have been looking at this tutorial but cannot quite figure out whats going on.

Does this line represent creating a chart with 2 lines to be graphed, or a chart with 2 y-axis?

XYMultipleSeriesRenderer renderer = new XYMultipleSeriesRenderer(2);

The JavaDocs do not explain the parameter at all. It simply says scaleNumber, which is explained nowhere.

Also, is there anyway to work with AChartEngine without using Intents? I currently have everything set up to create the graph and just set a LinearLayout to display it. There are other things on the page other than the graph.

  • 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-17T07:18:52+00:00Added an answer on June 17, 2026 at 7:18 am

    I am trying to create a line graph with six lines, and two Y Axis. All six lines will use >the same X-axis, but 3 lines should be graphed with respect to one Y-axis, and the other 3 >lines graphed with respect to the other Y-axis.

    I have been looking at this tutorial but cannot quite figure out whats going on.

    Does this line represent creating a chart with 2 lines to be graphed, or a chart with 2 y->axis?

    XYMultipleSeriesRenderer renderer = new XYMultipleSeriesRenderer(2);
    The JavaDocs do not explain the parameter at all. It simply says scaleNumber, which is >explained nowhere.

    In short, yes, scaleNumber refers to the number of Y scales that you have in your chart. When another method call refers to scaleNumber, it is normally to clarify which scale to apply the method to.

    Also, is there anyway to work with AChartEngine without using Intents? I currently have everything set up to create the graph and just set a LinearLayout to display it. There are other things on the page other than the graph.

    Again, yes. I use it in my applications like this:

    GraphicalView graph = ChartFactory.getTimeChartView(myContext, data, renderer, xLabelFormat);
        
    LinearLayout myLL = (LinearLayout) findViewById(R.id.graph_container);
    myLL.addView(graph);
    

    All of the chart types can be retrieved as either Intents or Views (full list in the Javadoc here: http://www.achartengine.org/content/javadoc/org/achartengine/ChartFactory.html)

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

Sidebar

Related Questions

The graph I am trying to create is a line graph with six separate
I'm trying to create a two-line <h1> in Markdown, something along the lines of:
I am trying to use HighCharts' HTML-table-to-chart script to create a line graph from
I have a very simple line graph I'm trying to create in gRaphael. My
Trying to create a black line in my view to separate text blocks but
I am trying to create a vimrc function which will clean up a line
I am trying to create a line-by-line filter in python. However, stdin.readlines() reads all
I am trying to create a realtime line graph in D3. My data is
I am trying to create a line graph of a cosine curve along with
I am trying to create a highchart line graph using data from a .csv

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.