M ChartM Chart
Users
Highcharts
Developers
Download
GitHub
Users
Highcharts
Developers
Download
GitHub
  • User Guide

    • User Guide
    • Libraries
    • Types of Charts
    • Creating a Chart
    • Multiple Sheets
    • Scatter & Bubble Charts
    • Radar & Radar Area Charts
    • Chart Shortcode
    • Block Editor
    • CSV Import & Export
    • Settings
    • Themes
    • Duplicating Charts
    • Example Charts

Chart Shortcode

Each chart has an auto-generated shortcode shown at the bottom of the chart settings panel. The shortcode intelligently selects the best display format based on context.

Default Behavior

[chart id="123"]

By default, the shortcode renders an interactive JavaScript chart. On RSS feeds and AMP pages, it automatically serves a static image instead.

Display Options

show

Controls the output format explicitly.

ValueDescription
defaultJavaScript chart (default); falls back to image in RSS/AMP
imageAlways renders a static image
tableRenders the chart data as an HTML table (available since v1.5)

Example — force image output:

[chart id="123" show="image"]

Example — render as a data table:

[chart id="123" show="table"]

share

Displays an embed code box below the chart, allowing visitors to copy the shortcode and embed the chart on their own WordPress site. Requires iFrame Embedding to be enabled in Chart → Settings.

There are two ways to show the share box:

As a parameter on the main shortcode:

[chart id="123" share="show"]

As a standalone shortcode (useful when you want the share box separately from the chart):

[chart-share id="123"]

Available since version 1.6.

width

Overrides the chart's default width.

[chart id="123" width="600"]

Block Editor

See Block Editor for documentation on embedding charts using the M Chart block.

Last Updated: 4/16/26, 6:12 PM
Contributors: Jamie Poitra
Prev
Radar & Radar Area Charts
Next
Block Editor