Does the main D3 module namespace not get updated with bleeding edge submodule additions?
up vote
1
down vote
favorite
I'm trying to use d3.group
, a very new addition to the d3-array submodule that got released a few days ago. I am using a yarn/webpack workflow and import statements to pull in D3 like so:
import * as d3 from 'd3';
However, when I tried to use d3.group
, it didn't work.
console.log(d3.group)
Returns undefined.
I to solve this, I had to install the newest version of d3-array and assign that to a new namespace.
import * as d3Array from 'd3-array';
console.log(d3Array.group)
This successfully returned the function.
So my question is, when Bostock or the other D3 developers update the submodules, do the updates not get added to the main D3 namespace until a major update? Is it necessary to pull from the submodules every time I want to use a really new feature?
d3.js
add a comment |
up vote
1
down vote
favorite
I'm trying to use d3.group
, a very new addition to the d3-array submodule that got released a few days ago. I am using a yarn/webpack workflow and import statements to pull in D3 like so:
import * as d3 from 'd3';
However, when I tried to use d3.group
, it didn't work.
console.log(d3.group)
Returns undefined.
I to solve this, I had to install the newest version of d3-array and assign that to a new namespace.
import * as d3Array from 'd3-array';
console.log(d3Array.group)
This successfully returned the function.
So my question is, when Bostock or the other D3 developers update the submodules, do the updates not get added to the main D3 namespace until a major update? Is it necessary to pull from the submodules every time I want to use a really new feature?
d3.js
1
Are you sure the latestd3-array
2.0 is already on the thed3
package? github.com/d3/d3/blob/master/CHANGES.md github.com/d3/d3/blob/master/package.json
– cal_br_mar
Nov 13 at 2:35
add a comment |
up vote
1
down vote
favorite
up vote
1
down vote
favorite
I'm trying to use d3.group
, a very new addition to the d3-array submodule that got released a few days ago. I am using a yarn/webpack workflow and import statements to pull in D3 like so:
import * as d3 from 'd3';
However, when I tried to use d3.group
, it didn't work.
console.log(d3.group)
Returns undefined.
I to solve this, I had to install the newest version of d3-array and assign that to a new namespace.
import * as d3Array from 'd3-array';
console.log(d3Array.group)
This successfully returned the function.
So my question is, when Bostock or the other D3 developers update the submodules, do the updates not get added to the main D3 namespace until a major update? Is it necessary to pull from the submodules every time I want to use a really new feature?
d3.js
I'm trying to use d3.group
, a very new addition to the d3-array submodule that got released a few days ago. I am using a yarn/webpack workflow and import statements to pull in D3 like so:
import * as d3 from 'd3';
However, when I tried to use d3.group
, it didn't work.
console.log(d3.group)
Returns undefined.
I to solve this, I had to install the newest version of d3-array and assign that to a new namespace.
import * as d3Array from 'd3-array';
console.log(d3Array.group)
This successfully returned the function.
So my question is, when Bostock or the other D3 developers update the submodules, do the updates not get added to the main D3 namespace until a major update? Is it necessary to pull from the submodules every time I want to use a really new feature?
d3.js
d3.js
asked Nov 13 at 0:30
InspectorDanno
617
617
1
Are you sure the latestd3-array
2.0 is already on the thed3
package? github.com/d3/d3/blob/master/CHANGES.md github.com/d3/d3/blob/master/package.json
– cal_br_mar
Nov 13 at 2:35
add a comment |
1
Are you sure the latestd3-array
2.0 is already on the thed3
package? github.com/d3/d3/blob/master/CHANGES.md github.com/d3/d3/blob/master/package.json
– cal_br_mar
Nov 13 at 2:35
1
1
Are you sure the latest
d3-array
2.0 is already on the the d3
package? github.com/d3/d3/blob/master/CHANGES.md github.com/d3/d3/blob/master/package.json– cal_br_mar
Nov 13 at 2:35
Are you sure the latest
d3-array
2.0 is already on the the d3
package? github.com/d3/d3/blob/master/CHANGES.md github.com/d3/d3/blob/master/package.json– cal_br_mar
Nov 13 at 2:35
add a comment |
1 Answer
1
active
oldest
votes
up vote
0
down vote
Considering that the newest d3-array is not it on the latest d3 bundle, and you're using webpack/yarn
You can easily loads the modules on the d3.*
, install the latest modules and wrap then together,
example:
// select all your d3 modules and save it on d3.js
// then load it on your script -> import d3 from './d3';
import { select, selectAll } from 'd3-selection'
import { group } from 'd3-array'
const d3 = Object.assign(
{},
{
select,
selectAll,
group,
}
)
export default d3;
ref: https://www.giacomodebidda.com/how-to-import-d3-plugins-with-webpack/
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
Considering that the newest d3-array is not it on the latest d3 bundle, and you're using webpack/yarn
You can easily loads the modules on the d3.*
, install the latest modules and wrap then together,
example:
// select all your d3 modules and save it on d3.js
// then load it on your script -> import d3 from './d3';
import { select, selectAll } from 'd3-selection'
import { group } from 'd3-array'
const d3 = Object.assign(
{},
{
select,
selectAll,
group,
}
)
export default d3;
ref: https://www.giacomodebidda.com/how-to-import-d3-plugins-with-webpack/
add a comment |
up vote
0
down vote
Considering that the newest d3-array is not it on the latest d3 bundle, and you're using webpack/yarn
You can easily loads the modules on the d3.*
, install the latest modules and wrap then together,
example:
// select all your d3 modules and save it on d3.js
// then load it on your script -> import d3 from './d3';
import { select, selectAll } from 'd3-selection'
import { group } from 'd3-array'
const d3 = Object.assign(
{},
{
select,
selectAll,
group,
}
)
export default d3;
ref: https://www.giacomodebidda.com/how-to-import-d3-plugins-with-webpack/
add a comment |
up vote
0
down vote
up vote
0
down vote
Considering that the newest d3-array is not it on the latest d3 bundle, and you're using webpack/yarn
You can easily loads the modules on the d3.*
, install the latest modules and wrap then together,
example:
// select all your d3 modules and save it on d3.js
// then load it on your script -> import d3 from './d3';
import { select, selectAll } from 'd3-selection'
import { group } from 'd3-array'
const d3 = Object.assign(
{},
{
select,
selectAll,
group,
}
)
export default d3;
ref: https://www.giacomodebidda.com/how-to-import-d3-plugins-with-webpack/
Considering that the newest d3-array is not it on the latest d3 bundle, and you're using webpack/yarn
You can easily loads the modules on the d3.*
, install the latest modules and wrap then together,
example:
// select all your d3 modules and save it on d3.js
// then load it on your script -> import d3 from './d3';
import { select, selectAll } from 'd3-selection'
import { group } from 'd3-array'
const d3 = Object.assign(
{},
{
select,
selectAll,
group,
}
)
export default d3;
ref: https://www.giacomodebidda.com/how-to-import-d3-plugins-with-webpack/
answered Nov 13 at 7:33
cal_br_mar
53127
53127
add a comment |
add a comment |
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53272082%2fdoes-the-main-d3-module-namespace-not-get-updated-with-bleeding-edge-submodule-a%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
1
Are you sure the latest
d3-array
2.0 is already on the thed3
package? github.com/d3/d3/blob/master/CHANGES.md github.com/d3/d3/blob/master/package.json– cal_br_mar
Nov 13 at 2:35