Enhancing Map Widget Customization with Custom Theme Variables
Bold BI offers support for customizing the appearance of the Map widget by using custom theme variables. These variables allow you to customize various aspects of the Map widget’s appearance. Once you have customized the theme variables, you can refer to the provided knowledge base (KB) articles to learn how to generate the custom dashboard theme minified file with the customized Map changes and upload it to the server.
KB Articles: How to generate custom dashboard theme and upload it to server
At first, download the most recent release package for the theme from the aforementioned knowledge base in Step 1 and extract it. Inside the extracted files, you will discover distinct theme files for each widget. By utilizing these files, you can personalize any widget and attain the outcome that you like across the dashboards. This article offers comprehensive guidance on modifying the Map widget through the utilization of Map widget theme variables.
Map Widget Customization Using Theme Variables
You have the ability to customize the appearance of the Map widget by utilizing the theme variables, which allow for adjustments to be made to the widget container’s border radius, background and border color, as well as the colors and font styles of the Widget Header, Sub Title, Data Label, Legend and LegendTitle.
Map Widget Title
The following variables allows you to customize the text color and font styles of the Map widget’s header.
--map-widget-title-font-color:#0000ff;
--map-widget-title-fontsize:25px;
--map-widget-title-fontweight:1000;
Map Widget SubTitle
The following variables allows you to customize the text color and font styles of the Map widget’s Sub Title.
--map-widget-subtitle-font-color:#0000ff;
--map-widget-subtitle-fontsize:25px;
--map-widget-subtitle-fontweight:1000;
Map Widget Data Label
The following variables allows you to customize the text color and font styles of the Map widget’s Data Label.
--map-widget-datalabel-font-color:#00008b;
--map-widget-datalabel-fontsize:20px;
--map-widget-datalabel-fontweight:1000;
Map Widget Legend
The following variables allows you to customize the text color and font styles of the Map widget’s Legend.
--map-widget-legend-font-color:#00008b;
--map-widget-legendtitle-fontsize:25px;
--map-widget-legendtitle-fontweight:1000;
--map-widget-legend-fontsize:20px;
--map-widget-legend-fontweight:1000;
Map Widget Container
The following variables allows you to customize the Background color, border color and border radius of the Map widget container.
--map-widget-container-border-radius:10px;
--map-widget-container-border-color:#00008b;
--map-widget-container-bg-color:#8ab9f1;
NOTE: It is crucial to emphasize that if you intend to customize the appearance of a specific widget using specific theme variables, refrain from customizing the Map widget in the properties.