Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
I am trying to set multiple colors for stacked bar chart, something like this:
but using json theme. And now I have problem, because I can not set this, altough my json file is in right format, all other properties are set successfully, only this is not working. I tried naming property defaultColor, defaultColors, color,colors, dataColor, dataColors, but nothing is working.
Here is my json file:
{
"name":"MyTheme",
"visualStyles":{
"barChart":{
"*": {
"labels": [{
"show": true,
"color": { "solid": { "color": "#e044a7"}},
"labelDisplayUnits": 1,
"labelPrecision": 0,
"fontFamily": "Calibri",
"fontSize": 11,
"labelPosition": "OutsideEnd"
}],
"dataPoint":[{
"defaultColors": [{ "solid": { "color": "#1A355E"}},{ "solid": { "color": "#000000"}},{ "solid": { "color": "#ffffff"}}]
}]
}
}
}
}
@NenadV , refer if that tool can help to generate
https://powerbi.tips/tools/report-theme-generator-v3/
Other related topic
@amitchandak , this theme generator does not help, using it I can only set multiple colors on whole report level, but not on stacked bar chart level.
Hi @NenadV,
I've just come across a similar problem but for the Line and clustered column visual. Did you find a solution for the json property defaultcolors?