=== Chartivio ===
Contributors: rachanapaudel26
Tags: chart, charts, data visualization, pie chart, bar chart
Requires at least: 5.0
Tested up to: 6.9
Requires PHP: 7.4
Stable tag: 1.1.1
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Create professional charts in seconds. Chartivio is a powerful wordpress chart builder designed for speed, minimalism, and high-performance data visualization.

== Description ==

Transform your data into a visual experience. **Chartivio** is a powerful yet user-friendly **wordpress chart builder** that allows you to create and manage professional, **minimalst charts** using a familiar custom post type interface. 

Most **data visualization** tools are either too complex or too heavy; Chartivio bridges that gap by offering a **lightweight charts** solution that prioritizes performance and aesthetics. Featuring a modern, split-screen admin UI, you can see your changes in real-time. Whether you are building a business dashboard or a blog infographic, Chartivio provides the **best charts** with zero coding required.

By utilizing **simple wordpress charts**, you ensure your audience stays engaged with data that moves as they scroll, without sacrificing site speed.

== Chart Types available in Chartivio ==

* **Interactive Bar Charts** – Highlight data trends with professional **data visualization**.
* **Minimalst Line Graphs** – Keep your site fast with a **lightweight charts** design.
* **Responsive Pie & Doughnut Charts** – Perfectly **responsive charts** that scale for any mobile device.
* **Dynamic CSV Integration** – The easiest **csv to chart** workflow available for WordPress.

== Installation ==

1. Upload the `chartivio` folder to the `/wp-content/plugins/` directory.
2. Activate the plugin through the 'Plugins' menu in WordPress.
3. Go to the 'Chartivio' menu in your sidebar to start creating your first chart.
4. Copy the generated shortcode (e.g., `[chartivio id="XX"]`) and paste it into any post or page.

== Frequently Asked Questions ==

= How do I display a chart on my site? =
Simply create your chart, copy the unique shortcode, and paste it into any Post, Page, or Widget area.

= Can I import data from Excel? =
Yes! Use our **csv to chart** feature. Save your Excel file as a .csv, upload it or link the URL, and Chartivio handles the rest.

= How do I make my charts responsive? =
All charts created with Chartivio are fully responsive by default. They automatically adjust to fit any screen size, from mobile devices to large desktops, ensuring a perfect viewing experience for your audience.

== Screenshots ==

1. **The Live Preview Engine** – Watch your **wordpress charts** update in real-time as you modify data or styling settings.
2. **Split-screen Admin UI** – A modern, dual-pane interface designed for easy data entry and professional **data visualization**.
3. **CSV to Chart Integration** – Effortlessly turn any CSV URL into a beautiful, **minimalst charts** display.
4. **Responsive Charts Preview** – See how your work scales perfectly for a mobile-first **simple wordpress charts** experience.

== Third-Party Libraries ==

This plugin includes the following third-party library:

* Chart.js v4.5.1 - Licensed under MIT License
* Source: https://www.chartjs.org/
* Bundled locally in: assets/js/chartjs/chart.umd.min.js
* Used for rendering interactive charts

== Changelog ==

= 1.1.1 =
* Fixed: CSV CORS issues by implementing a server-side AJAX proxy (`chartivio_fetch_csv`).
* Added: CSS Variable support (`--chart-height`) for proportional responsive scaling of custom chart heights.
* Improved: CSV parser robustness with Tab delimiter support and better quote handling.
* Fixed: Canvas height initialization for more consistent rendering across themes.


= 1.1.0 =
* Added: Auto-delimiter detection for CSV (Comma vs Semicolon).
* Added: UTF-8 BOM removal for cleaner CSV data parsing.
* Added: Premium UI Error Overlay with professional vertical alignment and icons.
* Added: Interactive 'Shake to Fix' functionality for CSV configuration.
* Added: Premium animations (fade-in/slide-up) and sleeker Doughnut cutout (70%).
* Added: Modern legend styling with circular indicators and system font stacks.
* Improved: Performance and race-condition handling during fetch operations.
* Improved: Frontend responsiveness for all screen sizes (Mobile, Tablet, Desktop).
* Fixed: Selector prefix consistency across CSS/JS/PHP (chartivio- vs dc-).

= 1.0.5 =
* Fixed: Mobile responsiveness and container height issues
* Fixed: Stray inline tags injected by WordPress formatting breaking chart dimensions
* Improved: Tablet and mobile CSS breakpoints for embedded charts

= 1.0.4 =
* Fixed: "Publishing failed. The response is not a valid JSON response" error when saving charts
* Improved: AJAX save handler stability against output from other plugins

= 1.0.3 =
* Fixed: CSV import related issue

= 1.0.2 =
* Updated: Chart.js upgraded to v4.5.1 (latest stable release)
* Fixed: WordPress.org compliance - replaced inline scripts with wp_add_inline_script()
* Fixed: Prefix consistency - all variables now use 'chartivio_' prefix
* Enhanced: Axis title fields now hide for pie/doughnut charts (UI improvement)
* Enhanced: Manual table - sticky action column and improved focus behavior
* Improved: Chart initialization with auto-init fallback for better compatibility

= 1.0.1 =
* Security: Fixed XSS vulnerability in shortcode callback (added proper JSON escaping)
* Updated: Chart.js upgraded from v4.4.1 to v4.4.7 (latest stable)
* Fixed: Charts now properly render on frontend after creating new posts
* Fixed: Post status automatically set to 'publish' when saving via AJAX
* Enhanced: Canvas dimension handling for better Chart.js initialization
* Enhanced: Data format detection and parsing robustness
* Improved: Comprehensive console logging for debugging
* Added: CDN delivery for Chart.js with security attributes

= 1.0.0 =
* Initial release.
* Added support for Pie, Doughnut, Bar, and Line charts.
* Implemented professional split-screen Admin UI with Live Preview.
* Added support for Manual Data Entry and CSV Import.
* Integrated curated color palettes and aesthetic settings.

== Upgrade Notice ==

