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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T14:53:30+00:00 2026-06-03T14:53:30+00:00

When I click on the various hyperlinks to tween my chart: while the pie’s

  • 0

When I click on the various hyperlinks to tween my chart: while the pie’s slices are tweening but I cannot figure out how to bring along each slice’s label.

A mostly working JSfiddle is here: http://jsfiddle.net/lukateake/MX7JC/

Thanks in advance for any insights you can provide me. I promise to update the fiddle with whatever solution we discover as I imagine this effect is of interest to a great many D3’ers.

  • 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-03T14:53:32+00:00Added an answer on June 3, 2026 at 2:53 pm

    The main issue here is in your updateChart function – while you rebound the data to arcs, you did not do so for sliceLabel: (second line added)

    arcs.data(donut(data.pct)); // recompute angles, rebind data
    sliceLabel.data(donut(data.pct));
    

    One other small thing – your slice label text selection seems a little bit strange:

    var sliceLabel = label_group.selectAll("text.value")
    

    but you are creating no text with class = “value”; this doesn’t really end up affecting much, but might cause problems in other implementations – selectAll(“text”) or selectAll(“text.arcLabel”) might be more appropriate here.

    updated fiddle at http://jsfiddle.net/MX7JC/9/

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

Sidebar

Related Questions

There are various ways to bind events to elements in jquery .click , .bind,
I click on items in my listbox and then hit a submit button, but
I'm implementing click tracking from various pages in our corporate intranet in order to
Checked various questions on SO, but found nothing that quite matches what I'm after...
I have various emails being sent out via PHP mail. The problem is, for
I've tried to various solutions to this problem, but nothing seems to be working.
I run a small webpage that allows users to click on various links using
I have various XML layouts. In all of those layouts I have buttons, but
I've seen various solutions for adding tabbed navigation to a rails 3 app, but
I've found several threads on various sites vaguely related this, but no solid answers.

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.