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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T11:59:41+00:00 2026-06-11T11:59:41+00:00

I am using AndroidPlot to create a simple bar graphing app that displays some

  • 0

I am using AndroidPlot to create a simple bar graphing app that displays some values in real time. I just started using it, so bear with me. There is a tutorial, which gives some basic info and then there are the JavaDocs that seem to give me everything including the kitchen sink.

My question now is: how do all the AndroidPlot classes fit together? I have a Plot, a Formatter and a Renderer, but I don’t seem to find a way to create a Renderer.

(to be a little more precise: I want a bar graph with bars that have some width and different colours per bar)

  • 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-11T11:59:42+00:00Added an answer on June 11, 2026 at 11:59 am

    I think I found it out, it is not easily found in the docs. I found it here: https://androidplot.jira.com/source/browse/ANDROIDPLOT/trunk/Examples/DemoApp/src/com/androidplot/demos/OrientationSensorExampleActivity.java?hb=true

    There is an XYPlot object (as found in the quickstart), where you can add a XYSeries to. The XYSeries, as well as a Formatter. To get the Renderer, you will need to tell that to the AddSeries method call. Then, with the getRenderer call and some casting, you can get the Renderer, where you can throw in some renderer-specific stuff.

    In code:

    XYPlot plot = (XYPlot) findViewById(R.id.myPlot);
    XYSeries series = new SimpleXYSeries(
          Arrays.asList(new Number[] { 1,2,3 } ), 
          SimpleXYSeries.ArrayFormat.Y_VALS_ONLY, "title");
    BarFormatter formatter = new BarFormatter(
               Color.rgb(0, 200, 0),
               Color.rgb(100, 0, 0));
    plot.addSeries(series, BarRenderer.class, formatter);
    BarRenderer renderer = (BarRenderer)plot.getRenderer(BarRenderer.class);
    
    // the BarRenderer is available now
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I implemented a plot using androidplot. Here are some snippets: .xml <com.androidplot.xy.XYPlot android:id=@+id/plot android:layout_width=fill_parent
Using Entity Framework CodeFirst, how do I create a created datetime column that gets
I have create simple line chart using Android Plot library. what i want to
Using CI for the first time and i'm smashing my head with this seemingly
Using import datetime in python, is it possible to take a formatted time/date string
Using Jenkins or Hudson I would like to create a pipeline of builds with
Using Java,I have to fetch multiple sets of values from an XML file to
Using Yii, I want to delete all the rows that are not from today.
Using EF Code First I have an model object that has multiple properties that
Using Qt Creator, I have set a QWidget's background property to black. However, some

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.