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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T11:40:09+00:00 2026-06-11T11:40:09+00:00

How to load d3.js from YUI3? I know how to load the native YUI

  • 0

How to load d3.js from YUI3?

I know how to load the native YUI module, but I am unsure how to load external module / library.

YUI().use("node", function(Y){
    //initialization code
});
  • 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-11T11:40:11+00:00Added an answer on June 11, 2026 at 11:40 am

    You need to config YUI, so he knows where to find it.

    By default the loader will look for the scripts at the same place that the yui seed file.
    To change the place a specific script (d3) will be download you need to define a group.

    A group has ‘base’ that is the base path where its modules will be downloaded.

    So you define a group “d3” with a module d3.

    YUI({
    groups: {
      "d3lib": {
        base: "http://d3js.org/",  //the modules of this group will be downloaded from there
        modules: {
          "d3": {
            path:"d3.v2.js"   // base + path = http://d3js.org/d3.v2.js
          },
          "d3fake": {  //another module of the "d3lib" group
            path:"d3fake.js"  
          }
        }
      }
     }
    }).use("d3", function (Y) {
       //d3 is available and ready to use!
      }
    });
    

    You can check the following link where they load some yui2 modules (this is the same principle).
    http://yuilibrary.com/yui/docs/yui/loader.html#example-config

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

Sidebar

Related Questions

I have a C++ library repeater.so that I can load from Python in Linux
I have a table view and it is load from table view cells. But
I'm searching for library that has those features: - can save and load from
I use a grouped tableview and custom cells which I load from nib. When
I'm trying to load images from a relative folder /media/one.jpg but it never loads,
my data is load from the internet, so I use the AsynTask(). execute() method
I have a library of JS code to load from a folder. Instead of
Here is an xml example that I load from an external xml file $data
On my viewDidLoad I load from a webservice the first 5 items of an
The first page I load from my site after not visiting it for 20+

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.