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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T14:06:39+00:00 2026-06-04T14:06:39+00:00

With the AndroidPlot website being down, I’m kind of stuck on this issue. Several

  • 0

With the AndroidPlot website being down, I’m kind of stuck on this issue. Several similar questions have been asked, but none of them were properly answered, so here I go.

I would like to know how I can relabel my X-axis. For example, if I want to plot values about monthly data, I would plot it like (1, 82) for Januari, (2,67) for Februari , and so on. Afterwards, I want to change the X-labels from [1, 2, 3, ...] to x_labels = ["Januari", "Februari", ...]. How can I do this?

Oh and please provide an answer for which x_labels can be anything (in case there is some specific method for monthly labels, you never know).

Anyone who could help?
Thanks!

  • 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-04T14:06:40+00:00Added an answer on June 4, 2026 at 2:06 pm

    Figured it out myself:

    this.getGraphWidget().setDomainValueFormat(new GraphXLabelFormat());
    
    // ...
    
    private class GraphXLabelFormat extends Format {
    
        private static LABELS = ["Label 1", "Label 2", "Label 3"];
    
        @Override
        public StringBuffer format(Object object, StringBuffer buffer, FieldPosition field) {
            int parsedInt = Math.round(Float.parseFloat(object.toString()));
            String labelString = = LABELS[parsedInt];
    
            buffer.append(labelString);
            return buffer;
        }
    
        @Override
        public Object parseObject(String string, ParsePosition position) {
            return java.util.Arrays.asList(LABELS).indexOf(string);
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Now that androidplot's website i down, i'd hear if any of you know whether
I use actually the AndroidPlot library to use a simple chart in my android
today i came across a new app-store for Android called soc.io. The website looks
how can i create a dynamic frequency graph in android? like this: http://www.jazzitalia.net/lezioni/sax/immagini/grafico1.gif without
I have 2 different layout files that I want to use for modifying the
I have a base abstract logger class, that has an instance variable that I
I have create simple line chart using Android Plot library. what i want to
On Androidplot my Axis Vals are cut off, so the last values are only
I am trying to use the library androidplot. Does it supply onclicklistener? If I
Anyone that has used the AndroidPlot library tell me how would I go about

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.