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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T14:40:41+00:00 2026-05-23T14:40:41+00:00

I am in learning stage in android and my application requirement is to draw

  • 0

I am in learning stage in android and my application requirement is to draw a line
graph using data provided by the user. I am trying it from 2 days but
didn’t found any perfect solution.The data provided by the user will
be

  1. A list of (x,y) co-ordinates
  2. Title of the graph
  3. X-axis label and Y-axis label
  4. Background color and foreground color

I read many posts on this topic but did not understand how to implement those Chart API in my application. I want only single line chart not a series of line chart. please help
me with example…

  • 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-23T14:40:41+00:00Added an answer on May 23, 2026 at 2:40 pm

    This library might help: http://android.arnodenhond.com/components/graphview seems like you want the simple line chart (2nd picture).

    I dont understand your question fully though. Do you want help to create your own View and drawing it or just find some library that will help you?

    Making a class and extending it as a View will get you a canvas to do the drawing on if you want to draw simple lines by yourself. Read more about building custom components here: http://developer.android.com/guide/topics/ui/custom-components.html

    I would make my own view, reference it in the activity and pass the data to it and after that calling invalidate on the view so it could draw the new data. Just simple drawLine seems to do the trick for you.

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

Sidebar

Related Questions

I'm learning Android (ironically from a cross of the developer site from Google and
I'm at the very early stage of learning Android. Can anyone tell me how
Learning from my last question , most member names seem to get included in
I'm on the stage of learning java, and I have the following question. On
I'm still in the beginning stage of learning c#, so i have a question
I'm learning android but have a pretty fair background in java so am a
I`m still in a learning stage with spring transactions and aop, and i have
Hi all as i in learning stage of django so support me. I have
I am still learning so sorry if this is simple... What I am trying
Just learning about with statements especially from this article question is, can I pass

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.