Release v1.21.0
GravityCharts v1.21.0
Latest versionWhat's new in v1.21.0
GravityCharts v1.21.0 was released on . Create beautiful charts and graphs using your Gravity Forms data; build data dashboards, create business reports, visualize questionnaire results and more. See the full changelog below and compare with the complete version history.
Release details
Released
2.9 MB
File available
Changelog
This release modernizes the chart block in the WordPress editor and resolves a range of issues affecting static image charts, chart names, and chart descriptions.
#### ✨ Improved
* The chart block preview now renders inside the editor canvas, following the block's move to WordPress block API version 3, with pages saved by earlier versions unaffected.
* Faster loading of pages holding a static image chart, which now fetch the chart's entries once instead of twice.
* Enhanced conditional logic:
- Date filters now have a clear button, so a date can be emptied without selecting and deleting the value;
- The date picker's calendar and clear buttons now sit inside the field and level with the value, making a date field recognizable at a glance;
- Dynamic Lookup filters now take their choices directly from Gravity Forms Lookup Field 1.8 or newer, falling back to the previous method on older versions.
#### 🐛 Fixed
* A static image chart lost its Wide and Full width alignment on the front end.
* A chart placed after a static image chart was left blank on the front end.
* A static image chart added through the chart block or the GravityView widget had `{aria_label}` as its alternative text instead of a description of the chart.
* Chart descriptions showed HTML character codes instead of punctuation when a field label or value contained an ampersand or a quote.
* Duplicating a chart dropped the original name, so the copy was named "- Copy 1" instead of "Original Name - Copy 1".
* A chart grouped by a field populated by [GP Populate Anything](https://gravitywiz.com/documentation/gravity-forms-populate-anything/) showed the choices saved on the field instead of the populated ones and left out every entry holding a populated value, when [GP Easy Passthrough](https://gravitywiz.com/documentation/gravity-forms-easy-passthrough/) had an entry to pass through on the same form.
* Opening a page holding a chart block marked the page as having unsaved changes.
* The chart block's preview in the editor labeled its data points "[object Object]" instead of the value, so the preview did not match the published page.
#### 💻 Developer Updates
* `GravityChart()` takes the chart's ID as its first argument instead of the chart's position on the page, and pages saved before this release still pass the position.
* Every chart that renders carries its ID in a `data-gk-gravitycharts-chart` attribute, except a chart block that renders a static image.
* `GravityKit\GravityCharts\API::get_chart_js()` and `GravityKit\GravityCharts\API::get_quick_chart()` accept an already-fetched chart as their last argument, so a caller that has one does not build it again.
* The chart block logged a JavaScript error when no form was selected on sites with `SCRIPT_DEBUG` enabled.
* GravityCharts now uses the current GravityView hooks instead of ones deprecated in GravityView 1.32.0.
#### 🔧 Updated
* [Foundation](https://www.gravitykit.com/foundation/) to version 1.32.1.
Compatibility
- Requires WordPress
- 5.6
- Tested up to
- 7.1
- Requires PHP
- 7.4.0
Verified safe
GravityCharts v1.21.0 scanned clean with no security threats detected.
View full scan report