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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T20:47:41+00:00 2026-06-13T20:47:41+00:00

I am working on a pie chart where i have drawn arcs with known

  • 0

I am working on a pie chart where i have drawn arcs with known sweeping angles.Now i want to display labels in center of each Arc, or say draw a line from center of each Arc.

Given that i know center coordinates,start coordinates,sweep angle and radius,I want to Calculate the end coordinates.

I have also tried this by drawing a triangle matching all coordinates and use Distance formula also but i don’t know how to solve equations in java.

Kindly provide me an appropriate solution.

  • 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-13T20:47:43+00:00Added an answer on June 13, 2026 at 8:47 pm

    Work in vectors. Let the A be the vector from circle centre to the arc start. Calculate this by

    A = start_point - centre
    

    Let theta be the sweep angle (work in radians). Use a rotation matrix to rotate the arc start around the circle centre. http://en.wikipedia.org/wiki/Rotation_matrix

    Explicitly,

    newpoint_x = cos(theta)*A_x + sin(theta)*A_y
    newpoint_y = -sin(theta)*A_x + cos(theta)*A_y
    

    where A_x is x component of A (and similarly for A_y). Then

    newpoint = centre + (newpoint_x,newpoint_y)
    

    is the point you want. It may be that the point appears rotated the wrong way (anticlockwise) and if so, just use

    theta = -theta
    

    instead. This should work for you.

    If you want to evaluate the mid-point of the arc, just use

    theta = theta / 2
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I working on HTML Canvas library to construct a PIE Chart Now to finish
I'm using jqplot for displaying bar chart and pie chart. I want to display
I have got the resize thing working but when i use the pie chart
I have a pie chart, I also have a legend with words that identifies
Currently I am working on report with a floating pie chart as one of
When working with the pie chart in Google Charts it seems to ignore items
My pie chart is rendering pretty well (labels are smashed to the far right
I have created in my application pie chart using AChartEngine. I have written it
I want to specify colors for certain piece for my pie chart. I wrote
I'm trying to generate a pie chart using axlsx for ruby. Everything is working

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.