Skip to main content
Matik Help Center home page Help Center
Matik Blog Case Studies
  1. Matik
  2. Matik Mail
  3. Matik Mail Overview

Dynamic Charts and Tables in Matik Mail

You can add charts and tables to your Matik Mail templates when creating mail through the visual editor for mail templates. You can also add charts to Code Editor emails (see Charts in the Code Editor). Tables are supported only in the Visual Builder. See Creating Matik Mail Templates for details on how to get started.

Once the email is finalized, these dynamic tables will be rendered as HTML tables, providing a seamless and polished presentation.

Adding a Table:

  1. Drag and drop the Table module onto the visual builder canvas. (Tip: The table can also be placed within a column module if preferred.)
  2. To begin configuring the table's styling, first select the dynamic content that will populate the table. (Only Table-type dynamic content is compatible with this feature.)

  1. Once you’ve selected dynamic content, we’ll display a placeholder table. If you like, you can start editing the table formatting now

At any time, you can preview the dynamic content table, to see how the table will look with your actual data. To do this:

  1. Select the table module, and click the Play button. 
  2. You’ll be prompted to enter any inputs required by your dynamic content.  
  3. Then, we’ll run your dynamic content. (If you need to cancel the preview for some reason, click the play button again to stop the process.)
  4. Once complete, we’ll update the table to show the results of your table dynamic content.

As soon as you’ve connected dynamic content, you’re able to edit the styling of the table. You can edit the styling even without running your dynamic content, while viewing the placeholder table. In either case, we’ll preserve your styling selections. 

 

You can control the personalization of:

  • The table body
  • The table header row (if a header row is enabled)
  • The table header column (if a header column is enabled)

 

To edit the personalization of your table:

  1. Select the table module
  2. Configure table styling using the options displayed in the sidebar on the left. You can control:
    1. Settings for the overall table
    2. The table header row (if enabled)
    3. The table header column (if enabled)
    4. The table body
  3. The table preview shown on the visual builder canvas will update live as you make your selections. 

Dynamic Charts

The Visual Builder offers complete control over the chart's styling, allowing for customization to align with brand guidelines or specific presentation needs. Once configured, the chart will be included as an image in the final email, ensuring it appears consistently across all devices and email clients.

This feature is designed to elevate the visual impact of communications by incorporating dynamic, data-driven charts directly within email content.

To add a dynamic chart:

  1. Drag and drop a Chart module onto the visual builder canvas. (Tip: you can place a chart within a column module if desired!)
  2. In order to start configuring the chart styling, you must first select the dynamic content to power the chart. (Only Chart-type dynamic content can be used here).
  3. Then, select the chart type. The current charts supported are:
    1. Column charts (stacked, 100%, and not stacked)
    2. Bar charts (stacked, 100%, and not stacked)
    3. Line charts
    4. Area charts (stacked, 100%, and not stacked)
    5. Pie charts
    6. Donut charts

The dynamic content chart can be previewed at any time to visualize how it will appear with actual data. To do this:

  1. Select the chart module, and click the Play button. 
  2. You’ll be prompted to enter any inputs required by your dynamic content.  
  3. Then, we’ll run your dynamic content. (If you need to cancel the preview for some reason, click the play button again to stop the process.)
  4. Once complete, we’ll update the chart based on the results of your chart dynamic content.

 

Once the dynamic content is connected, the chart's styling can be edited immediately. The styling can also be adjusted while viewing the placeholder chart, even before running the dynamic content. In both scenarios, all styling selections will be preserved.

 

You can control the personalization of:

  • The table body
  • The table header row (if a header row is enabled)
  • The table header column (if a header column is enabled)

 

To edit the personalization of your chart:

  1. Select the chart module
  2. Configure table styling using the options displayed in the sidebar on the left. You can control:
    1. Settings for the overall chart
    2. Styling for each series
    3. The chart title (if enabled)
    4. The chart subtitle (if enabled)
    5. The chat legend (if enabled)
    6. Axis labels (if enabled)
  3. The chart preview shown on the visual builder canvas will update live as you make your selections.

Charts in the Code Editor

In a Code Editor email, add a chart by using chart dynamic content as the src of an image tag. When the email is sent, Matik runs the dynamic content and draws the chart as an image, so it displays the same way in every email client. You can also ask Matik's AI to add a chart for you.

<img src="{{revenue_by_month}}" width="600" height="320" alt="Revenue rose 18% in Q3" data-chart-type="line" data-chart-legend="bottom">

When you type < in the Code Editor, the autocomplete offers a ready-made image tag for each chart dynamic content.

Every attribute is optional:

Attribute Options Default
width, height Displayed size in pixels 600 x 400
data-chart-type column, bar (horizontal), line, area, pie, donut column
data-chart-stacked true, false, percent (100% stacked) false
data-chart-colors Comma-separated colors, one per series (one per slice for pie and donut) Matik's chart palette
data-chart-title Any text No title
data-chart-legend top, bottom, left, right, none top
data-chart-labels true shows each value on the chart false
data-chart-background A color Transparent

The first column of the chart dynamic content is used for the labels, and each other column becomes a series.

  • Write alt text as the takeaway: Many email clients block images until the reader allows them, so the alt text should say what the chart shows, such as "Revenue rose 18% in Q3".
  • One image per chart: Use each chart dynamic content in only one image tag per email. A chart tag placed in text instead of an image tag does not render.

Was this article helpful?

Have more questions? Submit a request

Related articles

  • Dynamic Content Overview
  • Creating Matik Mail Templates
  • Tags Overview
  • Using Google Sheets with Matik
  • Getting Started with Matik Mail

Articles in this section

  • [BETA] Version History and Drafts for Matik Mail Templates
  • [BETA] Previewing and Approving Mail Sends
  • Adding Loops, Conditionals, and other Logic to Email Templates (Code Editor)
  • Managing Unsubscribes in Matik Mail
  • Getting Started with Matik Mail
  • Creating Matik Mail Templates
  • Generating Emails with Matik Mail
  • Managing Content Generation in Flows
  • Creating Sender, CC: & BCC: Dynamic Content
  • Dynamic Charts and Tables in Matik Mail
  • See all articles

Comments

0 comments

Please sign in to leave a comment.

Personalize data-driven content in minutes

Product

  • How it Works
  • Integrations
  • AI Features
  • Security

Solutions

  • Sales
  • Customer Success
  • Ops & Strategy
  • Data

Resources

  • Blog
  • Templates
  • AI + CS Resource Hub
  • Case Studies
  • Help Center

Company

  • About Us
  • Careers
  • Terms of Service
  • Privacy Policy

© 2024 Matik, Inc.