WordPress Charts and Graphs Lite - Version 1.1.2

Version Description

  • Compatibility issues with WordPress version 3.6 has been fixed.
Download this release

Release Info

Developer madpixels
Plugin Icon WordPress Charts and Graphs Lite
Version 1.1.2
Comparing to
See all releases

Code changes from version 1.1.1 to 1.1.2

classes/Visualizer/Module/Chart.php CHANGED
@@ -196,6 +196,8 @@ class Visualizer_Module_Chart extends Visualizer_Module {
196
  * @access public
197
  */
198
  public function renderChartPages() {
 
 
199
  // check chart, if chart not exists, will create new one and redirects to the same page with proper chart id
200
  $chart_id = filter_input( INPUT_GET, 'chart', FILTER_VALIDATE_INT );
201
  if ( !$chart_id || !( $chart = get_post( $chart_id ) ) || $chart->post_type != Visualizer_Plugin::CPT_VISUALIZER ) {
196
  * @access public
197
  */
198
  public function renderChartPages() {
199
+ define ( 'IFRAME_REQUEST', 1 );
200
+
201
  // check chart, if chart not exists, will create new one and redirects to the same page with proper chart id
202
  $chart_id = filter_input( INPUT_GET, 'chart', FILTER_VALIDATE_INT );
203
  if ( !$chart_id || !( $chart = get_post( $chart_id ) ) || $chart->post_type != Visualizer_Plugin::CPT_VISUALIZER ) {
classes/Visualizer/Plugin.php CHANGED
@@ -30,7 +30,7 @@
30
  class Visualizer_Plugin {
31
 
32
  const NAME = 'visualizer';
33
- const VERSION = '1.1.1';
34
 
35
  // custom post types
36
  const CPT_VISUALIZER = 'visualizer';
30
  class Visualizer_Plugin {
31
 
32
  const NAME = 'visualizer';
33
+ const VERSION = '1.1.2';
34
 
35
  // custom post types
36
  const CPT_VISUALIZER = 'visualizer';
index.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: WordPress Visualizer
4
  Plugin URI: http://visualizer.madpixels.net
5
  Description: A simple, easy to use and quite powerful tool to create, manage and embed interactive charts into your WordPress posts and pages. The plugin uses Google Visualization API to render charts, which supports cross-browser compatibility (adopting VML for older IE versions) and cross-platform portability to iOS and new Android releases.
6
- Version: 1.1.1
7
  Author: Madpixels
8
  Author URI: http://madpixels.net
9
  License: GPL v2.0 or later
3
  Plugin Name: WordPress Visualizer
4
  Plugin URI: http://visualizer.madpixels.net
5
  Description: A simple, easy to use and quite powerful tool to create, manage and embed interactive charts into your WordPress posts and pages. The plugin uses Google Visualization API to render charts, which supports cross-browser compatibility (adopting VML for older IE versions) and cross-platform portability to iOS and new Android releases.
6
+ Version: 1.1.2
7
  Author: Madpixels
8
  Author URI: http://madpixels.net
9
  License: GPL v2.0 or later
js/media/view.js CHANGED
@@ -12,6 +12,20 @@
12
  * =========================================================================
13
  */
14
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
15
  wpmvv.Chart = wpmV.extend({
16
  className: 'visualizer-library-chart-canvas',
17
 
@@ -139,8 +153,6 @@
139
  renderCollection: function() {
140
  var self = this;
141
 
142
- self.views.dispose();
143
-
144
  if (self.collection.length > 0) {
145
  self.$el.html('');
146
  self.collection.each(self.addChart, self);
@@ -183,6 +195,7 @@
183
  paginationView.render();
184
  }
185
 
 
186
  content.unlock();
187
  }
188
  }
12
  * =========================================================================
13
  */
14
 
15
+ if (!_.isFunction(wpmV.prototype.make)) {
16
+ wpmV.prototype.make = function(tag, attrs, val) {
17
+ var html, attr;
18
+
19
+ html = '<' + tag;
20
+ for (attr in attrs) {
21
+ html += ' ' + attr + '="' + attrs[attr] + '"';
22
+ }
23
+ html += '>' + val + '</' + tag + '>';
24
+
25
+ return html;
26
+ };
27
+ }
28
+
29
  wpmvv.Chart = wpmV.extend({
30
  className: 'visualizer-library-chart-canvas',
31
 
153
  renderCollection: function() {
154
  var self = this;
155
 
 
 
156
  if (self.collection.length > 0) {
157
  self.$el.html('');
158
  self.collection.each(self.addChart, self);
195
  paginationView.render();
196
  }
197
 
198
+ self.renderCollection();
199
  content.unlock();
200
  }
201
  }
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: madpixels, straightforward
3
  Donate link:
4
  Tags: chart, charts, charting, graph, graphs, graphing, visualisation, visualise data, visualization, visualize data, HTML5, canvas, pie chart, line chart, bar chart, column chart, gauge chart, area chart, scatter chart, candlestick chart, geo chart, google visualization api
5
  Requires at least: 3.5
6
- Tested up to: 3.5.2
7
- Stable tag: 1.1.1
8
  License: GPL v2.0 or later
9
  License URI: http://www.opensource.org/licenses/gpl-license.php
10
 
@@ -52,6 +52,9 @@ Read how to [create a chart](http://visualizer.madpixels.net/knowledgebase/how-c
52
 
53
  == Changelog ==
54
 
 
 
 
55
  = 1.1.1 =
56
  * Active type tab in the charts library was fixed.
57
  * Library styles were updated.
3
  Donate link:
4
  Tags: chart, charts, charting, graph, graphs, graphing, visualisation, visualise data, visualization, visualize data, HTML5, canvas, pie chart, line chart, bar chart, column chart, gauge chart, area chart, scatter chart, candlestick chart, geo chart, google visualization api
5
  Requires at least: 3.5
6
+ Tested up to: 3.6
7
+ Stable tag: 1.1.2
8
  License: GPL v2.0 or later
9
  License URI: http://www.opensource.org/licenses/gpl-license.php
10
 
52
 
53
  == Changelog ==
54
 
55
+ = 1.1.2 =
56
+ * Compatibility issues with WordPress version 3.6 has been fixed.
57
+
58
  = 1.1.1 =
59
  * Active type tab in the charts library was fixed.
60
  * Library styles were updated.