Dynamically change the slice color of the piechart

0
Hi all, I have to change the slice color dynamically and i don’t want the color which is already present in the pie chart widget. I have to assign the color code and based on that it should pick that color and it should display in the pie-chart. because values will be dynamically changing. how i can achieve this? 
asked
4 answers
1

 

hi Prajwal

 

you can add color to the pie-chart from chart properties as many as u want.

Hope this helps you 

 

answered
1

Is there a solution to color the slices of the pie chart? I cannot get it working with plotly configurations and you can only set 1 color in the standard configuration in Mendix Studio Pro.

answered
0

https://stackoverflow.com/questions/32419730/defining-pie-chart-slice-colors-with-plotly. See if you can get this working.

answered
0

Hi PRAJWAL BHARADWAJ and Kolien Pleijsant,


Try to Use any chart widget from Mendix and use you construct your JSON Structure where you can define your Colors in a microflow.

 

This link might help you : https://plotly.com/javascript/pie-charts/#pie-chart-subplots

 

answered