New Chart widgets plot colors

0
  Hi, is there a way to set plot color from the “com.mendix.chart.json” file. I tried to change the color of a pie chart. The only way that’s works, is to define color directly in the general section of the widget configuration. I have tried several ways, define the color in the json file (the theme folder config option was enabled) and define a color directly in the advanced section of the widget. Thanks Ingo  
asked
1 answers
0

HI Ingo,

Try setting the color in the json data, i have changed the colors for Individual bar charts dynamically by constructing a Json Data in microflows. 

 

Have a look at this link : 

https://plotly.com/javascript/pie-charts/#pie-chart-subplots

 

See how they have defined color in array and passed it to the data.

answered