> [!NOTE]
> **Note:** Starting in Looker 24.14, the Chart Config Editor supports the creation of Venn diagrams.

A Venn diagram shows the overlap between two or more attributes in a dataset.

Using the [Chart Config Editor](https://docs.cloud.google.com/looker/docs/chart-config-editor), you can create Venn diagrams by starting from a [column chart](https://docs.cloud.google.com/looker/docs/column-options) in Looker. You must include at least two [`type: yesno` dimensions](https://docs.cloud.google.com/looker/docs/reference/param-dimension-filter-parameter-types#yesno) and one dimension with [`type: string`](https://docs.cloud.google.com/looker/docs/reference/param-dimension-filter-parameter-types#string) or [`type: number`](https://docs.cloud.google.com/looker/docs/reference/param-dimension-filter-parameter-types#number) to create a Venn diagram.

For example, you can create a Venn diagram that shows the overlap between orders that were a user's first purchase, orders that had a senior discount applied, and orders of $50 or more.

![](https://docs.cloud.google.com/static/looker/docs/images/venn-three-fontsize-2412.png)

## Prerequisites

To access the Chart Config Editor, you must have the [`can_override_vis_config` permission](https://docs.cloud.google.com/looker/docs/admin-panel-users-roles#can_override_vis_config).

## Writing the JSON snippet

To create a Venn diagram, start from the following JSON snippet:

    {
      chart: {
        type: 'venn',
      }
    }

## Creating a Venn diagram

To create a Venn diagram, follow these steps:

1. View a [column chart](https://docs.cloud.google.com/looker/docs/column-options) in an Explore, or edit a column chart in a Look or dashboard.

   Start from a column chart with at least three dimensions. Include one dimension of `type: string` or `type: number`.
   Include at least two dimensions of `type: yesno`.

   ![](https://docs.cloud.google.com/static/looker/docs/images/venn-base-2412.png)
2. In the visualization, open the **Edit** menu.

3. In the **Plot** tab, click the **Edit Chart Config** button. Looker displays the **Edit Chart Config** dialog.

4. Select the **Chart Config (Override)** section, and enter the HighCharts JSON snippet from the [Writing the JSON snippet](https://docs.cloud.google.com/looker/docs/venn-chart-config-editor#json) section of this page.

5. To let Looker properly format your JSON, click **\<\> (Format code)**.

6. To test your changes, click **Preview**.

7. To apply your changes, click **Apply**. The visualization will be displayed using the custom JSON values.

![](https://docs.cloud.google.com/static/looker/docs/images/venn-editor-2412.png)

Once you've customized your visualization, you can save it.

### Adding more conditions

To add more circles to the Venn diagram, add more `type: yesno` dimensions to the data table. You can [create a custom dimension](https://docs.cloud.google.com/looker/docs/custom-fields#creating_a_custom_dimension_using_a_looker_expression) if you need this condition only for the Venn diagram. Write your custom dimensions as a boolean condition, like in this example:

    ${orders.total_amount} > 50

### Changing the overlap label values

By default, the label for any overlapping regions in the Venn diagram will be a comma-separated concatenation of the region labels. For example, the overlap between the regions "Spent Over $50", "Is First Purchase", and "Senior Discount" would be "Spent Over $50, Is First Purchase, Senior Discount".

To customize these labels, edit the `series.data.name` attributes using the Chart Config Editor. To determine which attribute corresponds to which region, it can be helpful to enumerate all of the regions first.

For example, consider a Venn diagram with three circles. This means that there are seven regions in total.

![](https://docs.cloud.google.com/static/looker/docs/images/venn-three-base-2412.png)

You can use the following JSON snippet to find out which label corresponds to each number:

    {
      chart: {
        type: 'venn'
      },
        series: [{
        data: [{ name: '1'}, {name: '2'}, {name: '3'}, {name: '4'}, {name: '5'}, {name: '6'}, {name: '7'}]
      }]
    }

![](https://docs.cloud.google.com/static/looker/docs/images/venn-editor-numbers-2412.png)

Then, you can edit the `name` attribute for any region whose name you want to change. To let the label remain as default, remove the `name` attribute but leave the brackets intact. In this example, the overlapping regions (3, 5, 6, 7) are relabeled, and the outer circles (1, 2, 4) keep their default label.

    {
      chart: {
        type: 'venn'
      },
        series: [{
        data: [{}, {}, {name: 'Ruby tier'}, {}, {name: 'Platinum tier'}, {name: 'Emerald tier'}, {name: 'Sapphire tier'}]
      }]
    }

![](https://docs.cloud.google.com/static/looker/docs/images/venn-editor-labels-2412.png)

### Changing the label font size

To change the font size of the labels on the Venn diagram, edit the `dataLabels.style.fontSize` attributes using the Chart Config Editor.

To expand on the previous example, the following example sets the font size of each of the labels to 24 point.

    {
      chart: {
        type: 'venn',

      },
      series: [{
        data: [{
            dataLabels: {
              style: {
                fontSize: 24
              }
            }
          }, {
            dataLabels: {
              style: {
                fontSize: 24
              }
            }
          }, {
            name: 'Ruby tier',
            dataLabels: {
              style: {
                fontSize: 24
              }
            }
          }, {
            dataLabels: {
              style: {
                fontSize: 24
              }
            }
          }, {
            name: 'Platinum tier',
            dataLabels: {
              style: {
                fontSize: 24
              }
            }
          },
          {
            name: 'Emerald tier',
            dataLabels: {
              style: {
                fontSize: 24
              }
            }
          },
          {
            name: 'Sapphire tier',
            dataLabels: {
              style: {
                fontSize: 24
              }
            }
          }
        ]
      }]
    }

![](https://docs.cloud.google.com/static/looker/docs/images/venn-three-fontsize-2412.png)