Posts by Duu Siqueira • 1 point
4 posts
-
0
votes3
answers60
viewsA: define div size according to svg in js
Thank you for the clarification. In my case, it was necessary to use an external script, as it was necessary to resize the father div and the daughters div’s and their respective contents. For this…
-
0
votes3
answers60
viewsQ: define div size according to svg in js
Good afternoon. Sorry, I was wondering if you could use the onresize javascript event to resize a div/container. I’m using that code: var resizeTimer; window.onresize = function (event) {…
-
0
votes1
answer39
viewsA: Browse JSON for graph construction Waterfall D3
I was able to solve the problem by going through JSON I used two foreach: one to traverse the first level and the other to traverse the second level, if there is any object. var data1 = Array();…
-
0
votes1
answer39
viewsQ: Browse JSON for graph construction Waterfall D3
I need to build a chart on Waterfall and I’m having trouble walking the JSON to build this chart. data = { "key": "Margem bruta", "total": 30000, "value": [ { "name": "Gastos com pessoal", "value":…