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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T18:32:21+00:00 2026-05-23T18:32:21+00:00

Is there any existing graphing library for android that will allow me to draw

  • 0

Is there any existing graphing library for android that will allow me to draw a line with an adjustable amount of segments that can be touched and dragged in real time? I currently have a working application using androidplot that captures an image of what I’m scanning and graphs that data. I need adjustable line segment under the graph so the user can choose the area that will be integrated between the curves collected from the data and the adjustable line.

I was unable to find anything in androidplot that might allow me to do this, I’m fine with switching graphing libraries if that is what is needed.

  • 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-05-23T18:32:22+00:00Added an answer on May 23, 2026 at 6:32 pm

    Try looking into Path. That is probably the easiest class to use.

    class Graph extends View {
        Graph(Context context) {
            super(context);
            // ... Init paints
        }
    
        @Override public void onDraw(Canvas canvas) {
            canvas.save(MATRIX_SAVE_FLAG);
    
            // Draw Y-axis
            canvas.drawLine(axisOffset, axisOffset, axisOffset, canvasHeight-axisOffset, paint);
            // Draw X-axis
            canvas.drawLine(axisOffset, canvasHeight-axisOffset, canvasWidth-axisOffset, canvasHeight-axisOffset, paint);
            canvas.drawPath(new RectF(0.0f, 0.0f, 1.0f, 1.0f), mPath, paint);
            canvas.restore();
        }
    
        Path mPath = new Path(); // your open path
        float canvasWidth = 1.0f;
        float canvasHeight= 1.0f;
        float axisOffset = 0.1f; // The offset from the border of the canvas
    
        public void registerDataPlot(int xCoord, int yCoord) {
            // You need to convert the plot data to a location on the canvas
            // Just find the percent value from the base of the axis
            float x = xCoord / (canvasWidth - (2*axisOffset));
            float y = yCoord / (canvasHeight - (2*axisOffset));
            mPath.lineTo(x, y);
        }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there any existing Python library that can validate data in Excel format? Or
Is there any existing php code that will allow me to edit and save
Are there any existing libraries in existence that will parse a datetime from a
Are there any existing AJAX/Javascript Date picker widgets/libraries that also allow you to select
Are there any existing library that support holidays (e.g. Christmas) highlight in the calendar
Is there any existing jQuery functionality that can test if characters entered into a
Out of curiousity, is there any way to edit an existing synonym? That is,
is there any existing function in jquery library with the help of which I
Is there any existing Bentley-Ottmann Algorithm Implementation/library in C# or Java?
Is there any existing JSON parser which can be used from VB6? I could

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.