json
6 TopicsDeneb (Vega-Lite Power BI) - Conditional Tick Mark removal?
Deneb noob here & working with a user who wants to see if tick marks can be removed where there is no label in deneb? We also want to keep the max amount of gridlines possible. Before After I tried using the conditional labels/located in the documentation, but could not get my expression to respect the labels in the chart above.Using JSON to Format Text Boxes
I'm running into an issue when trying to edit the JSON file for my powerBI report. I have a solid file, however, I am unable to edit the formatting for text boxes in the file. I found a solution from 2021. However, it seems to no longer work with the 8/2023 version of PowerBI. Would anyone have a code snippet they are willing to share? "textbox": { "*": { "*": [ { "fontSize": 14, "fontface": "Arial", "color": "#333333" } ], }}Can't turn off data labels once they have been set to 'show: true' in JSON file.
I am working on a JSON file for a custom theme for Power BI. For some of the visuals I have set that data labels should be on. However when I import the theme, I can't manually change this setting in the desktop version. So if I have set the data labels to be on in the JSON file, I can't turn them off manually in desktop version of Power BI. The reverse also happens. If I have turned data labels off in the JSON file, they can't be turned in manually in Power BI. It's only an issue with Data labels. Fx I can turn Total labels and Series labels on/off as I want no matter the settings in the JSON file. The only work-around I found is to go into Data Labels > Apply settings to > and then choose each series and turn off data labels for the series I want. However this is not feasible in settings, where there are many series. I would like to be able to choose whether the Data Labels are on or off by default, but I still need to be able to change it in Power BI for some specific cases of data. Is this a general thing, or is it something specific in my JSON file? I provided an example of the 'labels' section of the JSON file below: Don't know if I should provide the entire JSON file here, as it is quite long? "labels": [ { "show": true, "showSeries": true, "color": { "solid": { "color": { "expr": { "ThemeDataColor": { "ColorId": 0, "Percent": 0 } } } } }, "labelDisplayUnits": 0, "labelPosition": "Auto", "enableBackground": true, "backgroundColor": { "solid": { "color": { "expr": { "ThemeDataColor": { "ColorId": 6, "Percent": 0.2 } } } } }, "backgroundTransparency": 0, "labelOverflow": false, "showAll": false, "fontSize": 8, "fontFamily": "Arial" } ]1.5KViews0likes1CommentIdentification element in shape map
I have this json file with I can make this map. For make, this map I has to transform this geojson map to topojson with this web. The problem is how can I a relation between the division map and a table with the name and other parameters. The last column "Custom" is the official name of this administration division In json file I can't see some identification to correlation the table with the map.Solved553Views1like1CommentCustom Theme PieChart Background Color not working
Hi all, I'm trying to set the background of piecharts to a certain color for this theme, but my code is not working and I've tried many combinations. Here is my visual styles section: "visualStyles":{ "pieChart":{"*":{"background":[{"background":{"solid":{"color":"#404040"}}}]}}, "page":{"*":{"background":[{"color":{"solid":{"color":"#333132"}}}], "outspace":[{"color":{"solid":{"color":"#333132"}}}]}},"*":{"*":{"outspacePane":[{"checkboxAndApplyColor":{"solid":{"color":"#FFD200"}}}]}}}, "textClasses":{"title":{"color":"#FFFFFF","fontSize":16}, "header":{"color":"#FFFFFF","fontFace":"'Segoe UI Bold', wf_segoe-ui_bold, helvetica, arial, sans-serif"}}} The code runs but does not affect the pie chart background, please let me know what I'm doing wrong. Thanks!Solved