Changeset 2712628
- Timestamp:
- 04/21/2022 08:39:07 AM (4 years ago)
- Location:
- charts-for-tablepress-chartist/trunk
- Files:
-
- 3 edited
-
README.md (modified) (5 diffs)
-
readme.txt (modified) (2 diffs)
-
tablepress_chartist.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
charts-for-tablepress-chartist/trunk/README.md
r1649246 r2712628 1 # TablePress Extension: Chartist1 # TablePress Extension: Chartist 2 2 3 3  4 4 5 ## About5 ## About 6 6 7 7 Using [Chartist.js](http://gionkunz.github.io/chartist-js/), this [TablePress](https://tablepress.org/) Extension creates a responsive chart based on the data in a TablePress table. 8 8 9 ## Usage9 ## Usage 10 10 11 11 Add the Shortcode `[table-chart id=123 /]` to a post or page to create a chart from the TablePress table 123. … … 30 30 The other rows will be shown as lines or bars. Pie or percent charts will only use the first data row. Percent charts will ignore the header row. 31 31 32 ## CSS customizations32 ## CSS customizations 33 33 34 34 If you'd like to overide [the default style](http://gionkunz.github.io/chartist-js/getting-started.html#the-sass-way), you can add a `tablepress-chartist-custom.css` in `wp-content` directory. It will be loaded after the Extension's default CSS file `libdist/chartist.min.css`. … … 58 58 ``` 59 59 60 ## Installation60 ## Installation 61 61 62 62 **Prerequisite:** The [TablePress](https://tablepress.org/) plugin … … 66 66 1. When the plugin is installed, activate it. 67 67 68 ##Changelog 68 ## Changelog 69 * 0.10 Fixed error when opening the page in the backend. (Thanks to [andrewleonard](https://wordpress.org/support/topic/problems-with-chartist-plugin/)) 69 70 * 0.9 Updated chartist.js to 0.11.0 70 71 * 0.8 Added support for pie charts with percent labels, added animation for bar charts. Added parameters `label_offset`, `chart_padding` and `donut_width`. … … 78 79 * 0.1 Initial release (i.e. an early beta). 79 80 80 ## Credits81 ## Credits 81 82 82 83 * Gion Kunz for creating [Chartist.js](http://gionkunz.github.io/chartist-js/) 83 84 * Tobias Bäthge for creating [TablePress](https://tablepress.org/) 84 85 85 ## Copyright and License86 ## Copyright and License 86 87 87 88 TablePress Extension: Chartist is copyright 2014 Per Soderlind -
charts-for-tablepress-chartist/trunk/readme.txt
r1776351 r2712628 3 3 Donate link: https://sharethemeal.org/en/index.html 4 4 Tags: tablepress, table, chart, responsive 5 Requires at least: 4.76 Tested up to: 4.97 Stable tag: 0. 95 Requires at least: 5.9 6 Tested up to: 5.9.3 7 Stable tag: 0.10 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 88 88 89 89 == Changelog == 90 = 0.10 = 91 * Fixed error when opening the page in the backend. (Thanks to [andrewleonard](https://wordpress.org/support/topic/problems-with-chartist-plugin/)) 90 92 = 0.9 = 91 93 * Updated chartist.js to 0.11.0 -
charts-for-tablepress-chartist/trunk/tablepress_chartist.php
r1649246 r2712628 4 4 Plugin URI: https://github.com/silsha/tablepress_chartist 5 5 Description: Extension for TablePress to create a responsive chart based on the data in a TablePress table. 6 Version: 0. 96 Version: 0.10 7 7 Author: Silsha Fux 8 8 Author URI: https://silsha.me … … 34 34 * @var string 35 35 */ 36 protected static $version = '0. 9';36 protected static $version = '0.8'; 37 37 38 38 /** … … 120 120 add_filter('tablepress_shortcode_table_default_shortcode_atts', [__CLASS__, 'register_shortcode_attributes']); 121 121 add_filter('tablepress_table_output', [__CLASS__, 'generate_chart'], 10, 3); 122 add_shortcode('table-chart', [__CLASS__, 'handle_table_chart_shortcode']); 122 if ( defined( 'REST_REQUEST' ) && REST_REQUEST ) { 123 // TablePress doesn't support the REST API 124 } else { 125 add_shortcode('table-chart', [__CLASS__, 'handle_table_chart_shortcode']); 126 } 123 127 } 124 128 … … 147 151 } 148 152 149 return tablepress_get_table($table_query); 153 if ( function_exists( 'tablepress_get_table' )) { 154 return tablepress_get_table($table_query); 155 } 156 return false; 150 157 } 151 158
Note: See TracChangeset
for help on using the changeset viewer.