d3-vue-example icon indicating copy to clipboard operation
d3-vue-example copied to clipboard

`nest` deprecated

Open SaFrMo opened this issue 5 years ago • 0 comments

Absolutely love this tutorial, thanks for connecting the dots on D3's data structures and Vue's reactivity!

One thing I noticed while working through was that the nest function has been deprecated in favor of group and rollup. I was able to arrive at the same result with some changes in the Chart component:

// replace this:
const nestedTweets = d3
    .nest()
    .key(d => d.user)
    .entries(this.tweetData);

// with this:
const nestedTweets = d3.group(this.tweetData, d => d.user)
// replace this:
const packableTweets = { id: 'All Tweets', values: nestedTweets }
return d3
    .hierarchy(packableTweets, d => d.values)
    .sum(d =>
        d.retweets ? d.retweets.length + d.favorites.length + 1 : 1
    )

// with this:
return d3
    .hierarchy(nestedTweets)
    .sum(d =>
        d.retweets ? d.retweets.length + d.favorites.length + 1 : 1
    )

SaFrMo avatar Jan 23 '21 02:01 SaFrMo

Hi, This is caused by the EVSE slowly increasing the charge current, and the EV usually waiting 10-40 seconds before actually drawing current. I think the easiest solution would be to add a delay of let's say 60 seconds before increasing the charge current. This way the EV can start drawing current, at the lowest setting (MIN) and this high initial current draw will not occur.

mstegen avatar Jul 05 '22 17:07 mstegen

With the git version you could enable automatic StartCurrent detection - this will charge the first 40secs at 6 A

bobosch avatar Jul 05 '22 21:07 bobosch

Where can find firnware with fixed initial current issue?

elas00 avatar Aug 08 '22 19:08 elas00

Where can find firnware with fixed initial current issue?

The fork "kletteroli" has a fix. It is working for my Leaf/E-NV200.

kletteroli avatar Feb 27 '23 06:02 kletteroli

Is this still relevant in v3.6.0?

dingo35 avatar May 31 '24 11:05 dingo35

Yes. I think it's good to re-introduce this in our current version. So that it starts charging at 6A for 40s (in Solar mode). And then starts increasing the charge current.

mstegen avatar May 31 '24 13:05 mstegen

Here is a test firmware which will start charging at 6A (or MinCurrent) for 40 seconds, and then starts increasing the charge current. firmware.zip

mstegen avatar Jun 06 '24 18:06 mstegen

This has been implemented in v3.6.2 Closing this now.

mstegen avatar Jun 19 '24 22:06 mstegen