d3js
Enables the creation of interactive data visualisations using d3.js for custom charts, graphs, and complex SVG-based visualisations.
Install this skill
Security score
The d3js skill was audited on Mar 1, 2026 and we found 15 security issues across 2 threat categories. Review the findings below before installing.
Categories Tested
Security Issues
Template literal with variable interpolation in command context
| 115 | .attr("transform", `translate(${margin.left},${margin.top})`); |
Template literal with variable interpolation in command context
| 131 | .attr("transform", `translate(0,${innerHeight})`) |
Template literal with variable interpolation in command context
| 158 | const svg = d3.select(`#${containerId}`).append('svg'); |
Template literal with variable interpolation in command context
| 220 | .attr("transform", `translate(${margin.left},${margin.top})`); |
Template literal with variable interpolation in command context
| 232 | .attr("transform", `translate(0,${innerHeight})`) |
Template literal with variable interpolation in command context
| 328 | .attr("transform", `translate(${width / 2},${height / 2})`); |
Template literal with variable interpolation in command context
| 357 | .attr("transform", d => `rotate(${(d.angle * 180 / Math.PI) - 90})translate(${outerRadius + 30})${d.angle > Math.PI ? "rotate(180)" : ""}`) |
Template literal with variable interpolation in command context
| 389 | .attr("transform", `translate(${margin.left},${margin.top})`); |
Template literal with variable interpolation in command context
| 418 | .attr("transform", `translate(${margin.left},${margin.top})`) |
Template literal with variable interpolation in command context
| 430 | .attr("transform", `translate(${margin.left},${margin.top})`) |
Template literal with variable interpolation in command context
| 445 | .attr("transform", `translate(${width - 60},${margin.top})`); |
Template literal with variable interpolation in command context
| 464 | .attr("transform", `translate(${legendWidth},0)`) |
Template literal with variable interpolation in command context
| 483 | .attr("transform", `translate(${width / 2},${height / 2})`); |
Template literal with variable interpolation in command context
| 570 | .html(`<strong>${d.label}</strong><br/>Value: ${d.value}`); |
External URL reference
| 39 | <script src="https://d3js.org/d3.v7.min.js"></script> |