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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T11:20:18+00:00 2026-06-01T11:20:18+00:00

In the example, http://mbostock.github.com/d3/ex/bubble.html : In line 27: .style(fill, function(d) { return fill(d.packageName); });

  • 0

In the example, http://mbostock.github.com/d3/ex/bubble.html:

Enter image description here

In line 27:

.style("fill", function(d) { return fill(d.packageName); });

Where is fill() defined? I didn’t find it in d3.js either. And even if the package name is not a color, some random color is being assigned. How so?

  • 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-01T11:20:20+00:00Added an answer on June 1, 2026 at 11:20 am

    Take a look at the very top of the snippet you linked:

    var r = 960,
        format = d3.format(",d"),
        fill = d3.scale.category20c();
    

    That third line is where fill is being defined. You can find the doc for category20c here:

    https://github.com/mbostock/d3/wiki/Ordinal-Scales#wiki-category20

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

Sidebar

Related Questions

Original: http://mbostock.github.com/d3/ex/force.html In his example as provided in the above link, I'm simply trying
For example http://twitter.github.com/bootstrap/base-css.html try to scroll up. You will see the bar with Typography
In the following example http://twitter.github.com/bootstrap/base-css.html#forms There is a text field with text Type something...
we have this example: http://code.google.com/apis/maps/documentation/v3/basics.html#DetectingUserLocation which shows how to get the user's position in
Take the PriorityQueue for example http://java.sun.com/j2se/1.5.0/docs/api/java/util/PriorityQueue.html#offer(E) Can anyone give me an example of a
Starting from this example: http://support.microsoft.com/kb/828736 I have tried to add a test function in
In this example http://jsbin.com/inoka4 no width is defined for parent element if i want
Example: http://betafreshmedia.com/nathan/coffee.html When you click a category, I want the dropdown to appear ABOVE
example: http://www.ehow.com/how_2196172_ping-mac-computer.html As you can see the helpful? element is stuck in place even
In the test example http://django-rest-interface.googlecode.com/svn/trunk/django_restapi_tests/examples/custom_urls.py on line 19 to they parse the request.path to

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.