Gavin Wheeler
04/23/2024, 5:35 PMcheng fu
04/24/2024, 2:45 PMBen
04/25/2024, 3:40 PM.csv
file cause this errorFil
04/25/2024, 4:23 PMPatrik Blik
05/07/2024, 10:21 PMPatrik Blik
05/12/2024, 6:36 AMAshen Visvakula
05/14/2024, 8:56 AMAntoni ZiÄba
05/21/2024, 8:06 PMZhaocong Yang
06/06/2024, 3:07 PMvanilla d3 code
inside React useEffect
hook and embed the code into JSX
style (for example: array.map(d=><circle r={d.r}>). Thank you and much appreciate for the helpCora Sutton
06/13/2024, 7:24 PMCora Sutton
06/14/2024, 3:11 PMCora Sutton
06/14/2024, 3:18 PMCora Sutton
06/15/2024, 3:14 AMCora Sutton
06/17/2024, 4:51 PMforeignObject
and it's simply refusing to show up. If I go and edit the element type and change it from a div to a p in the browser console then it shows up, even if I switch it back. Is there some trick to this that I'm not aware of?Fil
06/17/2024, 4:55 PM.append("xhtml:div")
instead of .append("div")
I thinkFil
06/17/2024, 4:55 PMCora Sutton
06/17/2024, 4:56 PMCora Sutton
06/17/2024, 4:56 PMSigrid GyldenkƦrne Dalsgard
06/20/2024, 10:31 AMconst keys = d3.union(d3.map(data, d => d.commodity))
const rollup = d3.rollup(data, D => d3.sum(D, d => d.total_emissions_MtCO2e),
d => d.year,
d => d.commodity
)
const stack = d3.stack()
.keys(keys)
.order(d3.stackOrderInsideOut)
.value(([year, data], commodity) => data.get(commodity))
([...rollup])
const area = d3.area()
.x(d => x(d.data[0]))
.y0(d => y(d[0]))
.y1(d => y(d[1]))
and it looks like this:Zhaocong Yang
06/20/2024, 3:29 PMCora Sutton
06/20/2024, 5:10 PMFil
06/20/2024, 5:16 PMZhaocong Yang
06/25/2024, 1:23 PMd3.contour
Zhaocong Yang
06/26/2024, 2:41 PMd3.color-legend
outside the observable notebookIvan Grimaldo
07/02/2024, 7:46 PM"trend-limits"
which is the container of the paths that I'm zooming in the image with white bg. I been investigating but every reference confirm that I'm attaching correctly the clipPath, I think something is missing but I need to help to find where is the issue, do you have any idea?
trendLines.attr('clip-path', 'url(#clip-area)');
this is who I'm attaching the clipPath to the tend-limits
container.Cora Sutton
07/07/2024, 11:17 PMCora Sutton
07/13/2024, 10:13 PMd3.zoom().scaleExtent
?Rishant Godara
07/19/2024, 11:01 AMZhaocong Yang
07/19/2024, 7:18 PMDaniel Cordell
08/08/2024, 12:30 PMd3.contour
, it seems like the very edges of my diagram have these weird artifacts where the data sems to veer wildly off course?
You can see on the RHS the lines turn sharply downwards which isn't expected, and at the bottom they veer to the right, when the curve of the lines should be gradual! We also have these weird clipped corners. The data is all correct from what we can see, but does anyone have any idea for something immediately obvious that could cause this sort of thing?