SPW Pie Chart

Description

SPW Pie Chart adds a simple shortcode for displaying a single percentage-based pie chart with gradient colors, optional label text, and entry animation.

Features:

  • Render a single pie chart with the [spw_pie_chart] shortcode.
  • Control the percentage, size, thickness, colors, stops, angle, and label.
  • Enable or disable animation when the chart becomes visible.
  • Generate shortcode parameters from the admin screen under Settings > Pie Chart.

Example shortcode:

[spw_pie_chart percent="75" label="Sample" colors="#3d3e8e,#009ef9,#affffb" stops="0,50,100" angle="135"]

Screenshots

  • The shortcode generator screen in the WordPress admin area. You can configure the label, percentage, size, thickness, angle, text color, track color, and gradient colors while checking the live preview.
  • A shortcode inserted into the WordPress block editor. The generated shortcode can be copied from the admin screen and pasted into a Shortcode block.
  • Pie charts displayed on the frontend. The shortcode output supports customized colors, percentages, labels, and animated circular chart rendering.

Installation

  1. Upload the plugin files to the /wp-content/plugins/spw-pie-chart directory, or install the plugin through the WordPress plugins screen.
  2. Activate the plugin through the Plugins screen in WordPress.
  3. Open Settings > Pie Chart to generate a shortcode.
  4. Paste the shortcode into a post, page, or widget area that supports shortcodes.

FAQ

How do I add a chart?

Add the [spw_pie_chart] shortcode to any post or page.

Which shortcode attributes are supported?

Supported attributes are:

  • percent or value
  • label
  • size
  • thickness
  • duration
  • animate
  • colors
  • stops
  • angle
  • track_color
  • text_color

Does the plugin store any settings permanently?

No. The shortcode generator is a helper UI and does not save persistent plugin options.

Reviews

There are no reviews for this plugin.

Contributors & Developers

“SPW Pie Chart” is open source software. The following people have contributed to this plugin.

Contributors

Translate “SPW Pie Chart” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.

Changelog

1.0.0

  • Initial public release.