Colors play a crucial role in data visualization by distinguishing categories, highlighting patterns, and providing a more intuitive and engaging visual experience. In Mappica, colors are assigned to data in Charts, Maps, and Tables, and these colors can be inherited and displayed by connected elements, such as Filters, Selectors, and Legends.
This page provides a guide to configuring colors in Mappica, based on factors like the type of chart, map, or table, the selected data format (long or wide), and whether colors are being derived from a categorical or numeric dataset field.
You can configure colors in the Color section of the right panel using the following options:
For charts and maps that use Wide Data format, separate colors can be assigned to each of the selected series. Colors are also assigned in pie and donut charts in this way.
For charts and maps that use Long Data format (excluding pie and donut charts), you can specify a Color Field in the Colors section of the right panel. The configuration options will depend on whether you select a text or numeric field:
In tables, you can choose to assign colors to cells, rows, or columns. This allows you to create heat map tables that visually represent data patterns through color intensity.
Cells: select this option to assign colors based on cell values in specified column(s). You can create one Color Scheme for your entire table, or multiple schemes if cells in some columns should follow a different color scheme to cells in other columns. Within each scheme, assign the following:
Rows: choose this option to assign colors to the background of an entire row based on a specified Color Field. This can be either a text field (in which case colors are assigned categorically) or a numeric field (in which case colors are assigned continuously).
Columns: select this option to assign colors to the column header of each series field. The Color Format allows these colors to be displayed either as a "Background" or "Top Border." If a Selector element is connected to the table, it will display the assigned column colors, assuming color formatting is enabled and no other connected elements have precedence in assigning colors.
If you wish to turn off color formatting in a table, return to the default color assignment (cells) and remove any existing color schemes.
Whenever you select a text field as the Color Field in Mappica, or are assigning colors to Series Fields, or are assigning colors in a Pie or Donut chart, you will be able to select colors for each category under the Colors section of the right panel.
By default, each category is assigned colors from the default Mappica palette or, for Pro users, any "Default Theme Colors" specified under Chart Elements on the Theme page.
Pro users can click the Generate Colors button to quickly assign colors to each category. The system first assigns colors based on mappings in the Lookups page. Any remaining categories are then assigned colors by AI, which considers the semantic meaning of category names while attempting to maintain color contrast and avoiding color repetition. The AI prioritizes colors from your custom palette, using the default Mappica palette only if necessary.
Whenever you choose a numeric field as the Color Field, you will need to configure a Color Gradient, Domain, and Color Scale to ensure the numeric field maps appropriately onto a set of colors:
Color Gradient: Select either a "Predefined" or "Custom" gradient. Predefined gradients include many commonly used gradients available in D3's Scale Chromatic module and on ColorBrewer. Custom gradients allow you to specify your own series of colors.
Domain Minimum and Maximum: Choose the lower and upper boundary of the value range used by the color gradient. If no domain values are specified, the smallest and largest values in the selected Color Field will be used by default.
Color Scale: Choose from "Linear", "Discrete", "Square Root", "Logarithmic", or "Bi-symmetric Logarithmic" scales: