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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T19:46:17+00:00 2026-06-13T19:46:17+00:00

Hello iam trying to show a rect for a bmi graph. but the rect

  • 0

Hello iam trying to show a rect for a bmi graph.

but the rect will be cut and hidden on scroll event

EDIT: the green rect should be

Point A(-infinity, 21)
Point B(+infinity, 21)
Point C(+infinity, 26)
Point D(-infinity, 26)

But Point B is (12.10, 21) //12.10 is a date 12-10-2012

    // optimal_range
    LineAndPointFormatter optFormat = new LineAndPointFormatter(Color.TRANSPARENT, Color.TRANSPARENT, Color.TRANSPARENT);
    XYRegionFormatter rf = new XYRegionFormatter(optimal_color_fill);
    RectRegion rr = new RectRegion(Double.NEGATIVE_INFINITY, Double.POSITIVE_INFINITY, optimal[0], optimal[1]);

    Number xDummy[] = { Double.NEGATIVE_INFINITY, Double.POSITIVE_INFINITY };
    Number yDummy[] = { optimal[1], optimal[1] };
    XYSeries optSerie = new SimpleXYSeries(Arrays.asList(xDummy), Arrays.asList(yDummy), "");
    mySimpleXYPlot.addSeries(optSerie, optFormat);

Rect problem

  • 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-13T19:46:18+00:00Added an answer on June 13, 2026 at 7:46 pm

    It’s a while since I looked at the code for this and I never did anything with regions but I think if you pan and zoom so that data is off the screen the points off screen are just not drawn and this leads to what you are seeing. To get things correct there is a need to clip the line segment going off the screen to the screen edges.

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

Sidebar

Related Questions

hello i am trying a sqlite database tutorial to build, but its not working
Hello I am trying to create a custom expandable listview, but the documentation on
Hello I am trying to display the constraints in one of my tables but
Hello there Iam trying to use the http://paste.kde.org api in order to make it
Hello guys i am trying to show all the users pokemon were the table
Hello I am trying to display work orders from my mysql database to show
Hello I am trying to use this code below. I like the code but
hello i am trying to load a list of filenames from a folder into
Hello I am trying to save a bitmap image in a basic image editor
Hello I am trying to setup a Padrino project using DataMapper and MySQL on

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.