Content · Elementor

Charts widget for Elementor

Bar, line, pie, or radar charts from values you enter in the widget.

Open live demo

Get King Addons

This page describes the PHP/JS for this widget — not a renamed stub. Install the free plugin from WordPress.org.

Get King Addons

What it actually does

Bar, line, pie, or radar charts from values you enter in the widget.

render() writes HTML data attributes: data-settings.

Maps need a Google Maps API key; the widget prints a map container that JS initializes.

Some inspector controls are marked Pro in PHP (eicon-pro-icon / king-addons-pro-control). Those need King Addons Pro, not Elementor Pro.

The widget script reads data attributes: data-settings.

How to add it in Elementor

  1. Install King Addons. Install Elementor and King Addons. Get King Addons from WordPress.org.
  2. Edit with Elementor. Open a page and click Edit with Elementor.
  3. Insert the widget. Search the panel for “Charts”. Typing “king” lists every King Addons widget.
  4. Set inspector controls from this widget’s PHP. Configure “Data Source”, “CSV Source”, “Separator”, “Remote URL”. Style and Content tabs are listed on this page.

When to use it

Tip: After King Addons is active, type king in the Elementor search box to list every widget, including Charts.

Inspector controls from this widget’s PHP

ControlWhat the code does
General — Data SourceThe chosen value is read in render() and applied on the front end. Options: Custom; File.
General — CSV SourceOptions: Remote URL; File.
General — SeparatorText inspector control (`data_csv_separator`).
General — Remote URLText inspector control (`data_source_csv_url`).
General — Upload CSV FileMedia Library attachment(s); render() uses the URL/ID as the image source.
General — Chart StylesDoughnut, pie and polar area charts only work with custom data source.
General — Data Grid TypeThe chosen value is read in render() and applied on the front end. Options: Linear; Logarithmic.
General — Column WidthNumeric value used in this widget’s render/JS (default 0.5, min 0, max 1).
General — Exclude Data on Legend ClickSwitcher inspector control (`exclude_dataset_on_click`).
General — Enable Stacked ChartSwitcher inspector control (`stacked_bar_chart`).
General — Show Data ValuesSwitcher inspector control (`inner_datalabels`).
General — Min-Max ValuesSwitcher inspector control (`enable_min_max`).
General — Min. ValueNumeric control (default -100).
General — Max. ValueNumeric control (default 100).
General — AnimationSwitcher inspector control (`chart_animation`).
General — LoopSwitcher inspector control (`chart_animation_loop`).
General — Animation Duration (ms)Numeric control (default 1000, min 1).
General — Animation TimingOptions: linear; easeInBack; easeInBounce; easeInCirc; easeInCubic; easeInElastic; easeInExpo; easeInOutBack….
Data — Data LabelsEnter the comma-separated list of values (Used only with custom data source).
Set Data — LabelText inspector control (`chart_data_label`).
Set Data — DataText inspector control (`chart_data_set`).
Set Data (Normal) — Background ColorColor written to this widget’s CSS selector.
Set Data (Normal) — Border ColorColor written to this widget’s CSS selector.
Set Data (Hover) — Background ColorColor written to this widget’s CSS selector.
Set Data (Hover) — Border ColorColor written to this widget’s CSS selector.
Set Data — Border WidthNumeric control (default 1).
Data — Set DataRepeater rows; render() loops each item to build the list or slides.
Axis — Grid LinesSwitcher inspector control (`display_r_axis`).
Axis — Grid Line WidthNumeric control (default 1).
Axis — Ticks (Labels)Switcher inspector control (`display_r_ticks`).
Axis — Step SizeNumeric control (default 0, min 0, max 360).
Axis — Border Dash lengthNumeric control (default 1).
Axis — Border Dash spacingNumeric control (default 1).
Axis — Border Dash offsetNumeric control (default 1).
Axis — Grid Lines (Display X Axis)Switcher inspector control (`display_x_axis`).
Axis — Grid Line Width (Grid Line Width X)Numeric control (default 1).
Axis — Ticks (Labels) (Display X Ticks)Switcher inspector control (`display_x_ticks`).
Axis — Step Size (X Step Size)Numeric control (default 0, min 0, max 360).
Axis — Show TitleSwitcher inspector control (`display_x_axis_title`).
Axis — TitleText inspector control (`x_axis_title`).
Axis — Ticks (Labels) RotationNumeric control (default 0, min 0, max 360).
Axis — Grid Lines (Display Y Axis)Switcher inspector control (`display_y_axis`).
Axis — Grid Line Width (Grid Line Width Y)Numeric control (default 1).
Axis — Ticks (Labels) (Display Y Ticks)Switcher inspector control (`display_y_ticks`).
Axis — Step Size (Y Step Size)Numeric control (default 0, min 0, max 360).
Axis — Show Title (Display Y Axis Title)Switcher inspector control (`display_y_axis_title`).
Axis — Title (Y Axis Title)Text inspector control (`y_axis_title`).
Axis — Ticks (Labels) Rotation (Labels Rotation Y Axis)Numeric control (default 0, min 0, max 360).
Axis — Reverse ChartsSwitcher inspector control (`reverse_x`).
Axis — Reverse Charts (Reverse Y)Switcher inspector control (`reverse_y`).
Axis — Border Dash length (Border Dash Length)Numeric control (default 1).
Axis — Border Dash spacing (Border Dash Spacing)Numeric control (default 1).
Axis — Border Dash offset (Border Dash Offset)Numeric control (default 1).
Title — Show TitleSwitcher inspector control (`show_chart_title`).
TitleText inspector control (`chart_title`).
Title — PositionOptions: Top; Right; Bottom; Left.
Title — AlignOptions: Start; Center; End.
Legends — Show LegendsSwitcher inspector control (`show_chart_legend`).
Legends — ReverseSwitcher inspector control (`reverse_legend`).
Legends — ShapeOptions: Rectangle; Point.
Legends — PositionOptions: Top; Right; Bottom; Left; chartArea.
Legends — AlignOptions: Start; Center; End.
Tooltip — Show TooltipSwitcher inspector control (`show_chart_tooltip`).
Tooltip — Convert Values to PercentsSwitcher inspector control (`tooltips_percent`).
Tooltip — Show Tooltip OnOptions: Hover; Click.
Tooltip — Interaction ModeOptions: Point; Index; Dataset.
Tooltip — PositionOptions: Nearest; Average.
Lines — Show LinesSwitcher inspector control (`show_lines`).
Lines — Show Background FillSwitcher inspector control (`chart_type_line_fill`).
Lines — Show DotsSwitcher inspector control (`line_dots`).
Lines — Dots SizeSpacing/size control (min 0, max 50).
Responsive — Responsive LayoutEnables scrollbar on tablet and mobile screens.
Responsive — Min Width (px)Writes CSS `min-width` onto the widget’s front-end markup. (min 0, max 1600).
Responsive — Min Height (px)Writes CSS `min-height` onto the widget’s front-end markup. (min 0, max 1600).
Data Values — ColorColor written to this widget’s CSS selector.
Data Values — Font FamilyUse only the fonts located under System options group.
Data Values — Font StyleOptions: Normal; Italic; Oblique.
Data Values — Font WeightNumeric control (default 600, min 0).
Data Values — Font SizeSpacing/size control (min 10, max 100).
Axis — ColorColor written to this widget’s CSS selector.
Axis — Color (Axis Grid Line Color R)Color written to this widget’s CSS selector.
Axis — Color (Axis Labels Color)Color written to this widget’s CSS selector.
Axis — Background ColorColor written to this widget’s CSS selector.
Axis — PaddingSpacing/size control (min 0, max 100).
Axis — Color (Chart Point Labels Color R)Color written to this widget’s CSS selector.
Axis — Font FamilyUse only the fonts located under System options group.
Axis — Font StyleOptions: Normal; Italic; Oblique.
Axis — Font WeightNumeric control (default 600, min 0).
Axis — Font SizeSpacing/size control (min 10, max 100).
Axis — Color (X)Color written to this widget’s CSS selector.
Axis — Color (Y)Color written to this widget’s CSS selector.
Axis — Color (X) (Axis Title Color X)Color written to this widget’s CSS selector.
Axis — Font Family (Axis Title Font Family X)Use only the fonts located under System options group.
Axis — Font Style (Axis Title Font Style X)Options: Normal; Italic; Oblique.
Axis — Font Weight (Axis Title Font Weight X)Numeric control (default 600, min 0).
Axis — Font Size (Axis Title Font Size X)Spacing/size control (min 10, max 100).
Axis — Color (Y) (Axis Title Color Y)Color written to this widget’s CSS selector.
Axis — Font Family (Axis Title Font Family Y)Use only the fonts located under System options group.
Axis — Font Style (Axis Title Font Style Y)Options: Normal; Italic; Oblique.
Axis — Font Weight (Axis Title Font Weight Y)Numeric control (default 600, min 0).
Axis — Font Size (Axis Title Font Size Y)Spacing/size control (min 10, max 100).
Axis — Ticks Color (X)Color written to this widget’s CSS selector.
Axis — Font Family (Ticks Font Family X)Use only the fonts located under System options group.
Axis — Font Style (Ticks Font Style X)Options: Normal; Italic; Oblique.
Axis — Font Weight (Ticks Font Weight X)Numeric control (default 600, min 0).
Axis — Font Size (Ticks Font Size X)Spacing/size control (min 10, max 100).
Axis — DistanceSpacing/size control (min 0, max 50).
Axis — Ticks Color (Y)Color written to this widget’s CSS selector.
Axis — Font Family (Ticks Font Family Y)Use only the fonts located under System options group.
Axis — Font Style (Ticks Font Style Y)Options: Normal; Italic; Oblique.
Axis — Font Weight (Ticks Font Weight Y)Numeric control (default 600, min 0).
Axis — Font Size (Ticks Font Size Y)Spacing/size control (min 10, max 100).
Axis — Distance (Ticks Padding Y)Spacing/size control (min 0, max 50).
Title — ColorColor written to this widget’s CSS selector.
Title — Font FamilyUse only the fonts located under System options group.
Title — Font StyleOptions: Normal; Italic; Oblique.
Title — Font WeightNumeric control (default 600, min 0).
Title — Font SizeSpacing/size control (min 10, max 100).
Title — PaddingSpacing/size control (min 0, max 50).
Legend — ColorColor written to this widget’s CSS selector.
Legend — Font FamilyUse only the fonts located under System options group.
Legend — Font StyleOptions: Normal; Italic; Oblique.
Legend — Font WeightNumeric control (default 600, min 0).
Legend — Font SizeSpacing/size control (min 10, max 100).
Legend — Box SizeSpacing/size control (min 0, max 200).
Legend — GutterSpacing/size control (min 0, max 50).
Tooltip — Background ColorColor written to this widget’s CSS selector.
Tooltip — PaddingSpacing/size control (min 0, max 100).
Tooltip — Triangle SizeSpacing/size control (min 0, max 100).
Tooltip — Title ColorColor written to this widget’s CSS selector.
Tooltip — Font FamilyUse only the fonts located under System options group.
Tooltip — Font SizeSpacing/size control (min 10, max 100).
Tooltip — Title SpacingSpacing/size control (min 0, max 50).
Tooltip — Title AlignmentOptions: Left; Center; Right.
Tooltip — Item ColorColor written to this widget’s CSS selector.
Tooltip — Font Family (Chart Tooltip Item Font)Use only the fonts located under System options group.
Tooltip — Font Size (Chart Tooltip Item Font Size)Spacing/size control (min 10, max 100).
Tooltip — Item SpacingSpacing/size control (min 0, max 50).
Tooltip — Item AlignmentOptions: Left; Center; Right.

Content and Style tabs from this widget’s PHP, including repeater fields and group controls (typography, background, border, shadow). Elementor’s Advanced tab is core Elementor and is not listed here.

FAQ

Which Charts options need King Addons Pro?

Controls marked with the Pro icon in this widget’s PHP. King Addons Pro is a separate license from Elementor Pro.

Why is Charts blank?

The map JS needs a valid Google Maps API key. The Elementor preview can look empty until the key is set and you view the front end.

How do I add Charts in Elementor?

Install King Addons and Elementor, edit a page, search the panel for “Charts”, drag it onto the canvas, then set Content and Style.

Do I need Elementor Pro?

No. King Addons runs on free Elementor. Some King Addons options (for example template-in-accordion, extra popup conditions, parts of the template catalog) need King Addons Pro — not Elementor Pro.

Related content widgets

Get King Addons

One free plugin. 80+ Elementor widgets, 650+ templates, and 4,000+ sections. Search for Charts after you activate it.

Get King Addons