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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T00:26:24+00:00 2026-06-01T00:26:24+00:00

I have a graph to be displayed in an iphone in landscape and portrait

  • 0

I have a graph to be displayed in an iphone in landscape and portrait mode.
I have a set of points stored in a collection in terms of portrait mode.
I have done calculations to make them appear in the same manner on landscape as well.

My problem is I need to plot numbers on X and Y axis and plot the points according to that of graph and not the screen coordinates I captured.

and more importantly, the scale and numbers on X-Y axis should be generated to accomodate every point in that collection such that nothing goes out of the bounds of the screen/graph.

Size in pixels of the grids remain the same in landscape/portrait.

Only the scale changes. but the change should also be such that points are in multiples of 5,10,100,150 etc.
How should I go about it ?

  • 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-01T00:26:25+00:00Added an answer on June 1, 2026 at 12:26 am

    It’s simple. You need to calculate a scale. First find max and min points value, then calculate pointsDifference = abs(maxPoint - minPoint), then pixelsDifference = your avaliable space for graph in pixels. Then scale = pixelsDifference / pointsDifference; You can take same scale for box axes or different. And after that you can simple accomodate points.

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

Sidebar

Related Questions

I have the time stored as a fraction (done so it can be displayed
I can get the line graph to be displayed using gRaphael, but I have
I have a D3 force directed graph which is first displayed with a few
I have a really strange behavior with highchart (via rails plugin): The graph display
I have a graph representing users and some articles they wrote. I need to
I have a graph that contains nodes (groups) composed by inner nodes and when
I have 6 graph bars with the prices. Each price number will represent its
I have a graph (organigram) how this: digraph G { nodesep=0.3; ranksep=0.2; margin=0.1; node
I have a graph, well, a series of disconnected graphs in Neo4j. I want
I have a graph with n nodes as an adjacency matrix . Is it

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.