Update to SB Chart Block v1.2.1 for custom colors, font size options and multiple y-axis charts.
Now uses chart.js v4.2.1.

Changes
sb-chart-block v1.2.1 includes the changes for v1.2.0 plus a fix for PHP 7.4
Change | Reference |
---|---|
Added: Multi axis line chart | bobbingwide/sb-chart-block#22 |
Added: PHPUnit test cases | bobbingwide/sb-chart-block#25 |
Added: Per row color control – background and border colors | bobbingwide/sb-chart-block#20 |
Added: Set font size for legend labels and X-axis ticks | bobbingwide/sb-chart-block#21 |
Changed: Add filter hooks for options and content | bobbingwide/sb-chart-block#23 |
Changed: Added documentation about the shortcode | bobbingwide/sb-chart-block#23 |
Changed: Adds the value of the atribute `class` to the class list of the chart container | bobbingwide/sb-chart-block#23 |
Changed: Allow 2 decimals for Opacity. | bobbingwide/sb-chart-block#31 |
Changed: Chart options as object | bobbingwide/sb-chart-block#23 |
Changed: Extract utility functions to libs/sb-chart-block.php | bobbingwide/sb-chart-block#29 |
Changed: Improve parsing of the chart content to support CSV format & partial lines | bobbingwide/sb-chart-block#30 |
Changed: Improve sb_chart_block_array_get() to allow for lower cased attributes for shortcodes | bobbingwide/sb-chart-block#21 |
Changed: Improved validation for shortcode parameters | bobbingwide/sb-chart-block#23 |
Changed: New parameters for sb_chart_block_get_csv() to replace empty strings with null only when necessary | bobbingwide/sb-chart-block#23 |
Changed: Trim leading and trailing white space | bobbingwide/sb-chart-block#30 |
Changed: Update chart.js UMD v4.2.1 | bobbingwide/sb-chart-block#26 |
Fixed: Error in block when pasting in charts | bobbingwide/sb-chart-block#28 |
Fixed: Re-enable sliders for RangeControls; remove enclosing PanelRows | bobbingwide/sb-chart-block#31 |
Fixed: Warning: Use of undefined constant FILTER_VALIDATE_BOOL in PHP 7.4 | bobbingwide/sb-chart-block#32 |
Tested
- Tested: With Gutenberg 15.1.0
- Tested: With PHP 8.0
- Tested: With WordPress 6.1.1 and WordPress Multi Site