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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T03:54:50+00:00 2026-05-28T03:54:50+00:00

I found this solution . If type of chart is pie , how specify

  • 0

I found this solution.

If type of chart is pie, how specify parameters (x,y) of highlight(x, y)?

Thanks

Sorry for my bad English.

  • 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-05-28T03:54:51+00:00Added an answer on May 28, 2026 at 3:54 am

    Unfortunately, flot doesn’t expose the pie highlighting code to the user. So we are pretty much out of luck, but what may work for you is synthesizing a click event at the appropriate place on the page:

    $("#highligher").click(function () {
        var e = jQuery.Event('click');
        e.pageX = 250; //add a made up x/y coordinate to the click event
        e.pageY = 250;
        $('#plot canvas:first').trigger(e); //trigger the click event on the canvas
    });
    

    Here it is in action: http://jsfiddle.net/ryleyb/mHJm5/

    The problem is you have to know where the slice you want to highlight is already. This would be easy enough to set if the graph is static. If it’s a dynamic graph, you’d have to dig into the source of the pie code to figure out how to calculate where the pie slice is. It might be easier in that case to just have a copy of all the pie functions and manually draw on the pie overlay.

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

Sidebar

Related Questions

I found this solution: find -type d -name .svn|xargs rm -rf but I am
I found this solution which works, but I find it hard to believe there
I found the solution for this question in C# , but I can't translate
Edited to Add * I haven't found a solution for this one yet, can
I've been looking around for a solution to this thing but I haven't found
Edited: SOLUTION FOUND. This is strange and not the best solution, but I just
I edited this question after i found a solution... i need to understand why
problem euler #5 i found the solution but i don't know why this first
Has anyone else had this issue and found a working solution? I've enabled the
i have this problem: ms-access could not delete and i found a potential solution

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.