SPW Pie Chart

描述

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"]

屏幕截图

  • 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.

安装

  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.

常见问题

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.

评价

此插件暂无评价。

贡献者及开发者

「SPW Pie Chart」是开源软件。 以下人员对此插件做出了贡献。

贡献者

帮助将「SPW Pie Chart」翻译成简体中文。

对开发感兴趣吗?

您可以浏览代码,查看SVN仓库,或通过RSS订阅开发日志

更新日志

1.0.0

  • Initial public release.