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

  • Home
  • SEARCH
  • 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 8003613
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T16:41:36+00:00 2026-06-04T16:41:36+00:00

I love the way this scatterchart highlights circles when you mouse over them: http://novus.github.com/nvd3/examples/scatterWithLegend.html

  • 0

I love the way this scatterchart highlights circles when you mouse over them: http://novus.github.com/nvd3/examples/scatterWithLegend.html

But there’s a lot of code there (looks like the author has defined his/her own standard libraries) and I can’t figure out exactly how the effect is achieved.

Is it something to do with the .hover class and the stroke-width property?

I’d like to achieve the same effect on my own scatter graph, although I’m using circles rather than paths, so it may not be possible.

  • 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-04T16:41:38+00:00Added an answer on June 4, 2026 at 4:41 pm

    In the example, the effect seems to be realised in scatter.js from line 136.

    Just highlighting individual circles is much easier though and doesn’t need all the other stuff the example does. All you need to do is add a mouseover handler to the circles and (for example) increase stroke-width. That would look something like

    d3.selectAll("circle").data(...).enter()
      .append(...)
      .classed("circle", true)
      .on("mouseover", function() { d3.select(d3.event.target).classed("highlight", true); })
      .on("mouseout", function() { d3.select(d3.event.target).classed("highlight", false); });
    

    I’m assuming that a CSS class highlight defines the style. Alternatively, you can just use (in this example) CSS class circle:hover without the need for the event handlers.

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

Sidebar

Related Questions

I've recently switched over to handling my unhandled exceptions this way: Application.ThreadException += new
I love the way this site does transition between pages . Is the content
I am in love with Netbeans Source->Format feature. Is there any way to get
I love this shortcut in borne shell, and want to find out if it
I love the idea of Grizzly, but I can't find any good examples to
i have a listbox that is populated this way with two Databindings (Frage and
1 - Method Chaining I really love the way you can call functions without
I love the way StackOverflow handles tags. Is there any jQuery plugin that would
I love the way Python can format a string with a dictionary: print %(key1)s
I have installed bootstrap to my Rails 3.2 app this way (through Gemfile): gem

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.