> For the complete documentation index, see [llms.txt](https://docs.graphcommons.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.graphcommons.com/create/customizing-color-and-size.md). Agents can also search and read this documentation through its [MCP server](https://docs.graphcommons.com/~gitbook/mcp).

# Customizing color and size

Tailor colors, sizes, and labels with the Cartography Panel

The cartography section provides a plethora of options, enabling you to represent your data most effectively on your graph. Follow this guide to adjust settings related to colors, labels, node sizes, and edge directions, bringing greater clarity and understanding to your graph's viewers.

To access these options, navigate to one of your graphs and locate the editing bar on the left-hand side. Click on 'CARTO' to open the cartography panel.

<figure><img src="https://918529313-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtBdFNYyZE7d8Q4z2K2ZT%2Fuploads%2FRRbzqG5MW077fBKMgZuJ%2Fgc-carto-1.png?alt=media&amp;token=566986ca-641b-4848-a732-ce0d58ad3bf8" alt=""><figcaption><p>Customize color, size, label display, and edge directions in Cartography panel</p></figcaption></figure>

Upon opening the Cartography panel, you will encounter a taxonomy of nodes and edge types. Next to each type, there are options to adjust settings such as color, size, direction, and label. Modifications here will affect all data points corresponding to that specific type. It's important to note that viewers do not have the permission to alter these configurations.

{% hint style="warning" %}
Editing mode is only accessible to graph owners, admins and editors – not viewers.&#x20;
{% endhint %}

## Adjusting color

Each node and edge type gets a color when you create it. For a different color, click the colored dots. Pick a new color, and click outside the color picker to set it for the graph. For HEX or RGB colors, use 'Advanced options.'

{% hint style="info" %}
Explore a variety of excellent tools designed to assist you in selecting the perfect colors for your data visualization, presentation, or infographic design. Discover our collection of tools here: <https://coolinfographics.com/color-pickers>
{% endhint %}

## Adjusting node sizes

In the cartography panel, you can adjust node sizes under the "Size by" column. Here's how:

### 1. **Setting node size criteria:**&#x20;

Each node type can have different size criteria, with the default being the "number of connections" as it is the most common metric to view on a graph.

* Use the dropdown menu for other options:
  * **Connections** – Number of connection a node has
  * **Neutral** – for uniform sizes, useful when connections do not indicate importance (i.e, in a survey about favorite fruits, the number of choices doesn't reflect preference intensity.)
  * **Incoming connections** – Indicate the intensity of incoming connections.
  * **Outgoing connections** – Indicate the intensity of outgoing connections.
  * **Incoming weighted** – Indicate the weighted intensity of incoming connections. In the options above links are weighted 1, but you may have different weights in connections.
  * **Outgoing weighted** – same as above, but for outgoing connections.

<figure><img src="https://918529313-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtBdFNYyZE7d8Q4z2K2ZT%2Fuploads%2FFFmterQuIR79YUkV77Y5%2FScreen%20Shot%202022-11-17%20at%2003.40.49.png?alt=media&amp;token=1b2aacf7-8f68-4315-a4a2-0f0cad7f3d18" alt=""><figcaption><p>Node Size by selection in the Cartography panel </p></figcaption></figure>

### 2. Controlling max & min node sizes

You can set maximum and minimum sizes for each node type. This prevents nodes from becoming too large or small, which is especially helpful in larger graphs. These limits keep the graph legible, avoiding oversized nodes that might skew perception or distract viewers.

Just below the dropdown for size settings, click on the numbers to define a size limit for each node type. This setting helps you avoid nodes from getting too big or too small.&#x20;

<figure><img src="https://918529313-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtBdFNYyZE7d8Q4z2K2ZT%2Fuploads%2FuH9sHJoqqeBpnu8o7WNn%2FScreen%20Shot%202022-11-17%20at%2003.53.24.png?alt=media&amp;token=b1b124b6-a8e8-4233-aed6-53e2b1028302" alt=""><figcaption><p>Setting min and max node size in the Cartography panel</p></figcaption></figure>

### 3. Interpolating node sizes&#x20;

The 'Interpolate all' option adjusts all node sizes relative to each other, across all types. It's usually enabled for new graphs. Disabling this makes each node type's sizes independent, preventing misleading hierarchies in your visualization.

For example, in a teachers-students graph, keeping sizes independent avoids misrepresenting relationships, given teachers naturally connect with more students than vice versa.

Breaking the link between types can create false-hierarchies in your graph. Two nodes that have the same number of connections can have a significant size difference when node sizes are determined within node type.&#x20;

Experiment with these settings to see what presents your data most effectively. Adjusting based on what makes sense for your information ensures your graph is both accurate and intuitive.

<figure><img src="https://918529313-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtBdFNYyZE7d8Q4z2K2ZT%2Fuploads%2FA2GDmWLm4kOyoJKoiudd%2FScreen%20Shot%202022-11-17%20at%2004.39.58.png?alt=media&amp;token=89523499-cf00-4ed4-b255-a98f2da48c4d" alt=""><figcaption><p>Unchecking "Interpolate all" option in the Cartography panel</p></figcaption></figure>

## Choosing labels

The cartography panel's label section lets you select different properties as node labels or choose not to display any labels. By default, node names are displayed as labels. This is useful for presentations. Imagine revealing survey results and highlighting the most popular fruits based on sales percentages. Prompting audience guesses or outlining survey methods before delving into specifics can engage your listeners more.

Consider a graph showing people and the fruits they purchased in 2022. Besides names, Fruit nodes could show what percentage of individuals bought them, a detail included in their node properties. You might opt to display these percentages as labels, as illustrated below, to make your data more informative at a glance.

<figure><img src="https://918529313-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtBdFNYyZE7d8Q4z2K2ZT%2Fuploads%2F3DlgA8MgBfg2Lplv72wr%2FScreen%20Shot%202022-11-17%20at%2004.59.56.png?alt=media&amp;token=7910a045-5be2-41cc-b49f-f716a11fbb7d" alt=""><figcaption><p>Fruit node type's name is the default node label</p></figcaption></figure>

<figure><img src="https://918529313-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtBdFNYyZE7d8Q4z2K2ZT%2Fuploads%2FTaozxDAih1hGOXkBctTC%2FScreen%20Shot%202022-11-17%20at%2004.59.45.png?alt=media&amp;token=aafd8a3f-5bb6-4016-8b25-b0cba414625a" alt=""><figcaption><p>Fruit node type's ranking is selected as node label</p></figcaption></figure>

## Edge directions

You can make edge types directed or undirected by clicking on "Directed" for an edge type.

{% hint style="info" %}
To change the direction of a specific directed edge, you must delete it and then recreate it in the desired direction.
{% endhint %}
