=== SPW Pie Chart ===
Contributors: squareman
Tags: chart, pie chart, shortcode, percentage, animation
Requires at least: 6.5
Tested up to: 6.9
Requires PHP: 7.4
Stable tag: 1.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Render a customizable animated percentage pie chart with a shortcode.

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

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

== Frequently Asked Questions ==

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

== Screenshots ==

1. 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.
2. A shortcode inserted into the WordPress block editor. The generated shortcode can be copied from the admin screen and pasted into a Shortcode block.
3. Pie charts displayed on the frontend. The shortcode output supports customized colors, percentages, labels, and animated circular chart rendering.

== Changelog ==

= 1.0.0 =

* Initial public release.

== Upgrade Notice ==

= 1.0.0 =

Initial public release.
