Skip to content
Snippets Groups Projects
Commit 455d570f authored by Leander's avatar Leander
Browse files

fix: toggling not working

parent ade03950
No related branches found
No related tags found
No related merge requests found
......@@ -90,12 +90,14 @@ export default class RadarChart extends Chart {
data.selectAll('.data')
.data(preparedData)
.enter()
.append('g')
.join(
enter => enter.append("g"),
update => update,
exit => exit.remove()
)
.attr('class', 'data')
.append("path")
.attr("d", (d: any) => {
console.log(d)
return d3.lineRadial()
.angle((_, index) => Math.PI * 2 / vis.axes.length * index)
.radius((data) => data)
......@@ -138,12 +140,14 @@ export default class RadarChart extends Chart {
data.selectAll('.data')
.data(preparedData)
.enter()
.append('g')
.join(
enter => enter.append("g"),
update => update,
exit => exit.remove()
)
.attr('class', 'data')
.append("path")
.attr("d", (d: any) => {
console.log(d)
return d3.lineRadial()
.angle((_, index) => Math.PI * 2 / vis.axes.length * index)
.radius((data) => data)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment