Skip to content

Tooltip in worldmap created via d3.js

I have created a worldmap using the d3 and now able to create the specific countries to have hover effect , however I have also created the tooltip what I want to do now is to get the country map in the tooltip (the country which is hovered) i have used d3 v4 to do all this. I have made

How can i do a iteration whit last value in Alpine JS?

It´s possible to make a sum using the current value and the previous value to generate a new column in the table, in an Alpine iteration? In code below: After code: i need to show balance (current .valor + last .valor) in a new column of my table. Is this possible? Thanks for all. Answer x-for has a way to