Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
8 years ago
Solved

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...
  • v-chuncz-msft's avatar
    v-chuncz-msft
    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')
    				;