Forum Discussion
Anonymous
8 years agoNot applicable
Datacolor changing only after reloading visual
I have created a pie chart and added Data Color property to it. But if i change the color of a data point,the change in color can be seen only after I reload the visual. Why is it not instantaneous...
- 8 years ago
Anonymous,
Change it as follows.
let arcs = this.pieChartContainer.selectAll('.arc') .data(this.pie(this.datapoints)) ; arcs.enter() .append('path') .attr('class', 'arc') ;
v-chuncz-msft
8 years agoCommunity Support
Anonymous,
If convenient, share us a complete project for a quick test.
- Anonymous8 years agoNot applicable
v-chuncz-msft
Here's my GitHub repo : https://github.com/vichus1995/pie- v-chuncz-msft8 years agoCommunity Support
Anonymous,
Inspect the generated HTML in Web Console and change the code as Sample Bar Chart Repo does.
- Anonymous8 years agoNot applicable
let radius=Math.min(width,height)/2; let arc=this.arc=d3.svg.arc() .innerRadius(0) .outerRadius(radius); console.log(radius);v-chuncz-msft,Actually the radius value is changing if I resize the visual. But the d3.svg.arc retains the old value until the visual is reloaded.