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
    • Treemap Charts
    • Boxplots & Violin Charts
    • Chart Shortcode
    • Block Editor
    • CSV Import & Export
    • Settings
    • Chart Units
    • 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.

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

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: 5/21/26, 12:29 AM
Contributors: Jamie Poitra
Prev
Boxplots & Violin Charts
Next
Block Editor