Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

323
Views
JFreeChart Polar chart custom X labels

I would like to customize my PolarChart to replace the angle values displayed in a PolarChart by default enter image description here , with custom strings like this : enter image description here

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

You can override the refreshAngleTicks() method of PolarPlot, as shown here:

import static org.jfree.ui.TextAnchor.*
…
PolarPlot plot = new PolarPlot() {

    @Override
    protected List refreshAngleTicks() {
        List ticks = new ArrayList();
        ticks.add(new NumberTick(0, "maxCharTick: 20", TOP_LEFT, TOP_LEFT, 0));
        ticks.add(new NumberTick(45, "energyComsuption: 1", TOP_LEFT, TOP_LEFT, 0));
        ticks.add(new NumberTick(90, "maxDamage: 40", TOP_LEFT, TOP_LEFT, 0));
        …
        return ticks;
    }
};

Alternatively, consider a SpiderWebPlot, shown here.

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!