WordPress Charts and Graphs Lite - Version 1.3.0

Version Description

  • Implemented ability to set number and date formatters
  • Implemented ability to select transparent background for a chart
  • Fixed JS bugs which appear when post type editor support is disabled
  • Fixed issue with NULL values for numeric series
  • Fixed invalid charts rendering at "Add Media" library
  • Fixed compatibility issue with another Google API related plugins
  • Added "rate the plugin" box
Download this release

Release Info

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

Code changes from version 1.2.0 to 1.3.0

classes/Visualizer/Module/Admin.php CHANGED
@@ -98,15 +98,19 @@ class Visualizer_Module_Admin extends Visualizer_Module {
98
  * @access public
99
  */
100
  public function enqueueMediaScripts() {
101
- wp_enqueue_style( 'visualizer-media', VISUALIZER_ABSURL . 'css/media.css', array( 'media-views' ), Visualizer_Plugin::VERSION );
102
-
103
- wp_enqueue_script( 'google-jsapi', '//www.google.com/jsapi', array( 'media-editor' ), null );
104
- wp_enqueue_script( 'visualizer-media-model', VISUALIZER_ABSURL . 'js/media/model.js', array( 'google-jsapi' ), Visualizer_Plugin::VERSION );
105
- wp_enqueue_script( 'visualizer-media-collection', VISUALIZER_ABSURL . 'js/media/collection.js', array( 'visualizer-media-model' ), Visualizer_Plugin::VERSION );
106
- wp_enqueue_script( 'visualizer-media-controller', VISUALIZER_ABSURL . 'js/media/controller.js', array( 'visualizer-media-collection' ), Visualizer_Plugin::VERSION );
107
- wp_enqueue_script( 'visualizer-media-view', VISUALIZER_ABSURL . 'js/media/view.js', array( 'visualizer-media-controller' ), Visualizer_Plugin::VERSION );
108
- wp_enqueue_script( 'visualizer-media-toolbar', VISUALIZER_ABSURL . 'js/media/toolbar.js', array( 'visualizer-media-view' ), Visualizer_Plugin::VERSION );
109
- wp_enqueue_script( 'visualizer-media', VISUALIZER_ABSURL . 'js/media.js', array( 'visualizer-media-toolbar' ), Visualizer_Plugin::VERSION );
 
 
 
 
110
  }
111
 
112
  /**
98
  * @access public
99
  */
100
  public function enqueueMediaScripts() {
101
+ global $typenow;
102
+
103
+ if ( post_type_supports( $typenow, 'editor' ) ) {
104
+ wp_enqueue_style( 'visualizer-media', VISUALIZER_ABSURL . 'css/media.css', array( 'media-views' ), Visualizer_Plugin::VERSION );
105
+
106
+ wp_enqueue_script( 'visualizer-google-jsapi', '//www.google.com/jsapi', array( 'media-editor' ), null, true );
107
+ wp_enqueue_script( 'visualizer-media-model', VISUALIZER_ABSURL . 'js/media/model.js', array( 'visualizer-google-jsapi' ), Visualizer_Plugin::VERSION, true );
108
+ wp_enqueue_script( 'visualizer-media-collection', VISUALIZER_ABSURL . 'js/media/collection.js', array( 'visualizer-media-model' ), Visualizer_Plugin::VERSION, true );
109
+ wp_enqueue_script( 'visualizer-media-controller', VISUALIZER_ABSURL . 'js/media/controller.js', array( 'visualizer-media-collection' ), Visualizer_Plugin::VERSION, true );
110
+ wp_enqueue_script( 'visualizer-media-view', VISUALIZER_ABSURL . 'js/media/view.js', array( 'visualizer-media-controller' ), Visualizer_Plugin::VERSION, true );
111
+ wp_enqueue_script( 'visualizer-media-toolbar', VISUALIZER_ABSURL . 'js/media/toolbar.js', array( 'visualizer-media-view' ), Visualizer_Plugin::VERSION, true );
112
+ wp_enqueue_script( 'visualizer-media', VISUALIZER_ABSURL . 'js/media.js', array( 'visualizer-media-toolbar' ), Visualizer_Plugin::VERSION, true );
113
+ }
114
  }
115
 
116
  /**
classes/Visualizer/Plugin.php CHANGED
@@ -30,7 +30,7 @@
30
  class Visualizer_Plugin {
31
 
32
  const NAME = 'visualizer';
33
- const VERSION = '1.2.0';
34
 
35
  // custom post types
36
  const CPT_VISUALIZER = 'visualizer';
30
  class Visualizer_Plugin {
31
 
32
  const NAME = 'visualizer';
33
+ const VERSION = '1.3.0';
34
 
35
  // custom post types
36
  const CPT_VISUALIZER = 'visualizer';
classes/Visualizer/Render/Page.php CHANGED
@@ -69,6 +69,14 @@ class Visualizer_Render_Page extends Visualizer_Render {
69
  echo '<ul class="group-wrapper">';
70
  $this->_renderSidebarContent();
71
  echo '</ul>';
 
 
 
 
 
 
 
 
72
  echo '</div>';
73
  }
74
 
69
  echo '<ul class="group-wrapper">';
70
  $this->_renderSidebarContent();
71
  echo '</ul>';
72
+
73
+ echo '<div id="rate-the-plugin">';
74
+ echo '<div><b>', esc_html__( 'Like the plugin? Show us your love!', Visualizer_Plugin::NAME ), '</b></div>';
75
+ echo '<div id="rate-stars">&nbsp;</div>';
76
+ echo '<a id="rate-link" href="http://wordpress.org/support/view/plugin-reviews/visualizer" target="_blank">';
77
+ esc_html_e( 'Rate it on WordPress.org', Visualizer_Plugin::NAME );
78
+ echo '</a>';
79
+ echo '</div>';
80
  echo '</div>';
81
  }
82
 
classes/Visualizer/Render/Sidebar.php CHANGED
@@ -253,12 +253,20 @@ abstract class Visualizer_Render_Sidebar extends Visualizer_Render {
253
  '#666'
254
  );
255
 
 
256
  self::_renderColorPickerItem(
257
  esc_html__( 'Background Color', Visualizer_Plugin::NAME ),
258
  'backgroundColor[fill]',
259
- !empty( $this->backgroundColor['fill'] ) ? $this->backgroundColor['fill'] : null,
260
  '#fff'
261
  );
 
 
 
 
 
 
 
262
  self::_renderSectionEnd();
263
 
264
  self::_renderSectionStart( esc_html__( 'Chart Area', Visualizer_Plugin::NAME ), false );
@@ -452,4 +460,37 @@ abstract class Visualizer_Render_Sidebar extends Visualizer_Render {
452
  echo '</div>';
453
  }
454
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
455
  }
253
  '#666'
254
  );
255
 
256
+ $background_color = !empty( $this->backgroundColor['fill'] ) ? $this->backgroundColor['fill'] : null;
257
  self::_renderColorPickerItem(
258
  esc_html__( 'Background Color', Visualizer_Plugin::NAME ),
259
  'backgroundColor[fill]',
260
+ $background_color,
261
  '#fff'
262
  );
263
+
264
+ echo '<div class="section-item">';
265
+ echo '<label>';
266
+ echo '<input type="checkbox" class="control-checkbox" name="backgroundColor[fill]" value="transparent"', checked( $background_color, 'transparent', false ), '> ';
267
+ esc_html_e( 'Transparent background' );
268
+ echo '</label>';
269
+ echo '</div>';
270
  self::_renderSectionEnd();
271
 
272
  self::_renderSectionStart( esc_html__( 'Chart Area', Visualizer_Plugin::NAME ), false );
460
  echo '</div>';
461
  }
462
 
463
+ /**
464
+ * Renders format field according to series type.
465
+ *
466
+ * @since 1.3.0
467
+ *
468
+ * @access protected
469
+ * @param int $index The index of the series.
470
+ */
471
+ protected function _renderFormatField( $index = 0 ) {
472
+ switch ( $this->__series[$index + 1]['type'] ) {
473
+ case 'number':
474
+ self::_renderTextItem(
475
+ esc_html__( 'Number Format', Visualizer_Plugin::NAME ),
476
+ 'series[' . $index . '][format]',
477
+ isset( $this->series[$index]['format'] ) ? $this->series[$index]['format'] : '',
478
+ sprintf( esc_html__( 'Enter custom format pattern to apply to this series value, similar to the %sICU pattern set%s. Use something like #,### to get 1,234 as output, or $# to add dollar sign before digits. Pay attention that if you use #%% percentage format then your values will be multiplied by 100.', Visualizer_Plugin::NAME ), '<a href="http://icu-project.org/apiref/icu4c/classDecimalFormat.html#_details" target="_blank">', '</a>' ),
479
+ '#,###.##'
480
+ );
481
+ break;
482
+ case 'date':
483
+ case 'datetime':
484
+ case 'timeofday':
485
+ self::_renderTextItem(
486
+ esc_html__( 'Date Format', Visualizer_Plugin::NAME ),
487
+ 'series[' . $index . '][format]',
488
+ isset( $this->series[$index]['format'] ) ? $this->series[$index]['format'] : '',
489
+ sprintf( esc_html__( 'Enter custom format pattern to apply to this series value, similar to the %sICU date and time format%s.', Visualizer_Plugin::NAME ), '<a href="http://userguide.icu-project.org/formatparse/datetime#TOC-Date-Time-Format-Syntax" target="_blank">', '</a>' ),
490
+ 'eeee, dd LLLL yyyy'
491
+ );
492
+ break;
493
+ }
494
+ }
495
+
496
  }
classes/Visualizer/Render/Sidebar/Graph.php CHANGED
@@ -370,6 +370,8 @@ abstract class Visualizer_Render_Sidebar_Graph extends Visualizer_Render_Sidebar
370
  esc_html__( 'Determines whether the series has to be presented in the legend or not.', Visualizer_Plugin::NAME )
371
  );
372
 
 
 
373
  self::_renderColorPickerItem(
374
  esc_html__( 'Color', Visualizer_Plugin::NAME ),
375
  'series[' . $index . '][color]',
370
  esc_html__( 'Determines whether the series has to be presented in the legend or not.', Visualizer_Plugin::NAME )
371
  );
372
 
373
+ $this->_renderFormatField( $index );
374
+
375
  self::_renderColorPickerItem(
376
  esc_html__( 'Color', Visualizer_Plugin::NAME ),
377
  'series[' . $index . '][color]',
classes/Visualizer/Render/Sidebar/Linear.php CHANGED
@@ -92,21 +92,25 @@ abstract class Visualizer_Render_Sidebar_Linear extends Visualizer_Render_Sideba
92
  * @access protected
93
  */
94
  protected function _renderLineSettingsItems() {
95
- self::_renderTextItem(
96
- esc_html__( 'Line Width', Visualizer_Plugin::NAME ),
97
- 'lineWidth',
98
- $this->lineWidth,
99
- esc_html__( 'Data line width in pixels. Use zero to hide all lines and show only the points.', Visualizer_Plugin::NAME ),
100
- 2
101
- );
102
-
103
- self::_renderTextItem(
104
- esc_html__( 'Point Size', Visualizer_Plugin::NAME ),
105
- 'pointSize',
106
- $this->pointSize,
107
- esc_html__( 'Diameter of displayed points in pixels. Use zero to hide all points.', Visualizer_Plugin::NAME ),
108
- 0
109
- );
 
 
 
 
110
 
111
  if ( $this->_includeCurveTypes ) {
112
  self::_renderSelectItem(
@@ -169,21 +173,29 @@ abstract class Visualizer_Render_Sidebar_Linear extends Visualizer_Render_Sideba
169
  esc_html__( 'Determines whether the series has to be presented in the legend or not.', Visualizer_Plugin::NAME )
170
  );
171
 
172
- self::_renderTextItem(
173
- esc_html__( 'Line Width', Visualizer_Plugin::NAME ),
174
- 'series[' . $index . '][lineWidth]',
175
- isset( $this->series[$index]['lineWidth'] ) ? $this->series[$index]['lineWidth'] : '',
176
- esc_html__( 'Overrides the global line width value for this series.', Visualizer_Plugin::NAME ),
177
- 2
178
- );
179
-
180
- self::_renderTextItem(
181
- esc_html__( 'Point Size', Visualizer_Plugin::NAME ),
182
- 'series[' . $index . '][pointSize]',
183
- isset( $this->series[$index]['pointSize'] ) ? $this->series[$index]['pointSize'] : '',
184
- esc_html__( 'Overrides the global point size value for this series.', Visualizer_Plugin::NAME ),
185
- 0
186
- );
 
 
 
 
 
 
 
 
187
 
188
  if ( $this->_includeCurveTypes ) {
189
  self::_renderSelectItem(
92
  * @access protected
93
  */
94
  protected function _renderLineSettingsItems() {
95
+ echo '<div class="section-item">';
96
+ echo '<a class="more-info" href="javascript:;">[?]</a>';
97
+ echo '<b>', esc_html__( 'Line Width And Point Size', Visualizer_Plugin::NAME ), '</b>';
98
+
99
+ echo '<table class="section-table" cellspacing="0" cellpadding="0" border="0">';
100
+ echo '<tr>';
101
+ echo '<td class="section-table-column">';
102
+ echo '<input type="text" name="lineWidth" class="control-text" value="', esc_attr( $this->lineWidth ), '" placeholder="2">';
103
+ echo '</td>';
104
+ echo '<td class="section-table-column">';
105
+ echo '<input type="text" name="pointSize" class="control-text" value="', esc_attr( $this->pointSize ), '" placeholder="0">';
106
+ echo '</td>';
107
+ echo '</tr>';
108
+ echo '</table>';
109
+
110
+ echo '<p class="section-description">';
111
+ esc_html_e( 'Data line width and diameter of displayed points in pixels. Use zero to hide all lines or points.', Visualizer_Plugin::NAME );
112
+ echo '</p>';
113
+ echo '</div>';
114
 
115
  if ( $this->_includeCurveTypes ) {
116
  self::_renderSelectItem(
173
  esc_html__( 'Determines whether the series has to be presented in the legend or not.', Visualizer_Plugin::NAME )
174
  );
175
 
176
+ echo '<div class="section-item">';
177
+ echo '<a class="more-info" href="javascript:;">[?]</a>';
178
+ echo '<b>', esc_html__( 'Line Width And Point Size', Visualizer_Plugin::NAME ), '</b>';
179
+
180
+ echo '<table class="section-table" cellspacing="0" cellpadding="0" border="0">';
181
+ echo '<tr>';
182
+ echo '<td class="section-table-column">';
183
+ $line_width = isset( $this->series[$index]['lineWidth'] ) ? $this->series[$index]['lineWidth'] : '';
184
+ echo '<input type="text" name="series[', $index, '][lineWidth]" class="control-text" value="', esc_attr( $line_width ), '" placeholder="2">';
185
+ echo '</td>';
186
+ echo '<td class="section-table-column">';
187
+ $point_size = isset( $this->series[$index]['pointSize'] ) ? $this->series[$index]['pointSize'] : '';
188
+ echo '<input type="text" name="series[', $index, '][pointSize]" class="control-text" value="', esc_attr( $point_size ), '" placeholder="0">';
189
+ echo '</td>';
190
+ echo '</tr>';
191
+ echo '</table>';
192
+
193
+ echo '<p class="section-description">';
194
+ esc_html_e( 'Overrides the global line width and point size values for this series.', Visualizer_Plugin::NAME );
195
+ echo '</p>';
196
+ echo '</div>';
197
+
198
+ $this->_renderFormatField( $index );
199
 
200
  if ( $this->_includeCurveTypes ) {
201
  self::_renderSelectItem(
classes/Visualizer/Render/Sidebar/Type/Gauge.php CHANGED
@@ -86,6 +86,8 @@ class Visualizer_Render_Sidebar_Type_Gauge extends Visualizer_Render_Sidebar {
86
  2
87
  );
88
 
 
 
89
  self::_renderSectionEnd();
90
  self::_renderGroupEnd();
91
  }
86
  2
87
  );
88
 
89
+ $this->_renderFormatField();
90
+
91
  self::_renderSectionEnd();
92
  self::_renderGroupEnd();
93
  }
classes/Visualizer/Render/Sidebar/Type/Geo.php CHANGED
@@ -252,6 +252,8 @@ class Visualizer_Render_Sidebar_Type_Geo extends Visualizer_Render_Sidebar {
252
  '1.0'
253
  );
254
 
 
 
255
  self::_renderSectionEnd();
256
  self::_renderGroupEnd();
257
  }
252
  '1.0'
253
  );
254
 
255
+ $this->_renderFormatField();
256
+
257
  self::_renderSectionEnd();
258
  self::_renderGroupEnd();
259
  }
classes/Visualizer/Render/Sidebar/Type/Pie.php CHANGED
@@ -87,6 +87,8 @@ class Visualizer_Render_Sidebar_Type_Pie extends Visualizer_Render_Sidebar {
87
  esc_html__( 'The content of the text displayed on the slice.', Visualizer_Plugin::NAME )
88
  );
89
 
 
 
90
  self::_renderColorPickerItem(
91
  esc_html__( 'Slice Border Color', Visualizer_Plugin::NAME ),
92
  'pieSliceBorderColor',
87
  esc_html__( 'The content of the text displayed on the slice.', Visualizer_Plugin::NAME )
88
  );
89
 
90
+ $this->_renderFormatField();
91
+
92
  self::_renderColorPickerItem(
93
  esc_html__( 'Slice Border Color', Visualizer_Plugin::NAME ),
94
  'pieSliceBorderColor',
classes/Visualizer/Source.php CHANGED
@@ -131,10 +131,10 @@ abstract class Visualizer_Source {
131
 
132
  switch ( $series['type'] ) {
133
  case 'number':
134
- $data[$i] = floatval( $data[$i] );
135
  break;
136
  case 'boolean':
137
- $data[$i] = filter_validate( $data[$i], FILTER_VALIDATE_BOOLEAN );
138
  break;
139
  case 'timeofday':
140
  $date = new DateTime( '1984-03-16T' . $data[$i] );
131
 
132
  switch ( $series['type'] ) {
133
  case 'number':
134
+ $data[$i] = !empty( $data[$i] ) ? floatval( $data[$i] ) : null;
135
  break;
136
  case 'boolean':
137
+ $data[$i] = !empty( $data[$i] ) ? filter_validate( $data[$i], FILTER_VALIDATE_BOOLEAN ) : null;
138
  break;
139
  case 'timeofday':
140
  $date = new DateTime( '1984-03-16T' . $data[$i] );
css/frame.css CHANGED
@@ -246,6 +246,27 @@ div.group-content .group-description {
246
  margin: 0;
247
  }
248
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
249
  /******************************************************************************/
250
  /******************************** TOOLBAR ***********************************/
251
  /******************************************************************************/
246
  margin: 0;
247
  }
248
 
249
+ #rate-the-plugin {
250
+ margin-top: 40px;
251
+ padding: 20px;
252
+ border-top: 1px dashed #ddd;
253
+ }
254
+
255
+ #rate-stars {
256
+ float: right;
257
+ width: 100px;
258
+ height: 20px;
259
+ background-image: url('../images/star.png');
260
+ background-repeat: repeat-x;
261
+ background-position: right center;
262
+ }
263
+
264
+ #rate-link {
265
+ text-decoration: none;
266
+ display: block;
267
+ margin-top: 3px;
268
+ }
269
+
270
  /******************************************************************************/
271
  /******************************** TOOLBAR ***********************************/
272
  /******************************************************************************/
images/star.png ADDED
Binary file
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.2.0
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.3.0
7
  Author: Madpixels
8
  Author URI: http://madpixels.net
9
  License: GPL v2.0 or later
js/media/view.js CHANGED
@@ -35,7 +35,7 @@
35
  },
36
 
37
  render: function() {
38
- var self, model, chart, gv, type, series, data, table, settings, i, j, row, date;
39
 
40
  self = this;
41
  gv = google.visualization;
@@ -51,6 +51,9 @@
51
  data = model.get('data');
52
  settings = model.get('settings');
53
 
 
 
 
54
  table = new gv.DataTable({cols: series});
55
  chart = type == 'gauge' ? 'Gauge' : type.charAt(0).toUpperCase() + type.slice(1) + 'Chart';
56
  chart = new gv[chart](self.el);
@@ -90,6 +93,36 @@
90
  return;
91
  }
92
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
93
  for (i = 0; i < data.length; i++) {
94
  row = [];
95
  for (j = 0; j < series.length; j++) {
@@ -107,6 +140,31 @@
107
  table.addRow(row);
108
  }
109
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
110
  chart.draw(table, settings);
111
  }
112
  });
35
  },
36
 
37
  render: function() {
38
+ var self, model, chart, gv, type, series, data, table, settings, i, j, row, date, format, formatter, axis, property;
39
 
40
  self = this;
41
  gv = google.visualization;
51
  data = model.get('data');
52
  settings = model.get('settings');
53
 
54
+ settings.width = self.options.width;
55
+ settings.height = self.options.height;
56
+
57
  table = new gv.DataTable({cols: series});
58
  chart = type == 'gauge' ? 'Gauge' : type.charAt(0).toUpperCase() + type.slice(1) + 'Chart';
59
  chart = new gv[chart](self.el);
93
  return;
94
  }
95
 
96
+ if (series[0] && (series[0].type == 'date' || series[0].type == 'datetime')) {
97
+ axis = false;
98
+ switch (type) {
99
+ case 'line':
100
+ case 'area':
101
+ case 'scatter':
102
+ case 'candlestick':
103
+ case 'column':
104
+ axis = settings.hAxis;
105
+ break;
106
+ case 'bar':
107
+ axis = settings.vAxis;
108
+ break;
109
+ }
110
+
111
+ if (axis) {
112
+ for (property in axis.viewWindow) {
113
+ date = new Date(axis.viewWindow[property]);
114
+ if (Object.prototype.toString.call(date) === "[object Date]") {
115
+ if (!isNaN(date.getTime())) {
116
+ axis.viewWindow[property] = date;
117
+ continue;
118
+ }
119
+ }
120
+
121
+ delete axis.viewWindow[property];
122
+ }
123
+ }
124
+ }
125
+
126
  for (i = 0; i < data.length; i++) {
127
  row = [];
128
  for (j = 0; j < series.length; j++) {
140
  table.addRow(row);
141
  }
142
 
143
+ if (settings.series) {
144
+ for (i = 0; i < settings.series.length; i++) {
145
+ format = settings.series[i].format;
146
+ if (!format || format == '') {
147
+ continue;
148
+ }
149
+
150
+ formatter = null;
151
+ switch (series[i + 1].type) {
152
+ case 'number':
153
+ formatter = new gv.NumberFormat({pattern: format});
154
+ break;
155
+ case 'date':
156
+ case 'datetime':
157
+ case 'timeofday':
158
+ formatter = new gv.DateFormat({pattern: format});
159
+ break;
160
+ }
161
+
162
+ if (formatter) {
163
+ formatter.format(table, i + 1);
164
+ }
165
+ }
166
+ }
167
+
168
  chart.draw(table, settings);
169
  }
170
  });
js/preview.js CHANGED
@@ -16,7 +16,7 @@
16
  }
17
 
18
  $('.control-text').change(updateChart).keyup(updateChart);
19
- $('.control-select').change(updateChart);
20
  $('.color-picker-hex').wpColorPicker({
21
  change: updateChart,
22
  clear: updateChart
16
  }
17
 
18
  $('.control-text').change(updateChart).keyup(updateChart);
19
+ $('.control-select, .control-checkbox').change(updateChart);
20
  $('.color-picker-hex').wpColorPicker({
21
  change: updateChart,
22
  clear: updateChart
js/render.js CHANGED
@@ -4,7 +4,7 @@
4
  v.objects = {};
5
 
6
  v.renderChart = function(id) {
7
- var chart, render, container, series, data, table, settings, i, j, row, date, axis, property;
8
 
9
  chart = v.charts[id];
10
  series = chart.series;
@@ -58,7 +58,7 @@
58
  return;
59
  }
60
 
61
- if (series[0].type == 'date' || series[0].type == 'datetime') {
62
  axis = false;
63
  switch (v.charts[id].type) {
64
  case 'line':
@@ -105,6 +105,31 @@
105
  table.addRow(row);
106
  }
107
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
108
  render.draw(table, settings);
109
  };
110
 
4
  v.objects = {};
5
 
6
  v.renderChart = function(id) {
7
+ var chart, render, container, series, data, table, settings, i, j, row, date, axis, property, format, formatter;
8
 
9
  chart = v.charts[id];
10
  series = chart.series;
58
  return;
59
  }
60
 
61
+ if (series[0] && (series[0].type == 'date' || series[0].type == 'datetime')) {
62
  axis = false;
63
  switch (v.charts[id].type) {
64
  case 'line':
105
  table.addRow(row);
106
  }
107
 
108
+ if (settings.series) {
109
+ for (i = 0; i < settings.series.length; i++) {
110
+ format = settings.series[i].format;
111
+ if (!format || format == '') {
112
+ continue;
113
+ }
114
+
115
+ formatter = null;
116
+ switch (series[i + 1].type) {
117
+ case 'number':
118
+ formatter = new g.visualization.NumberFormat({pattern: format});
119
+ break;
120
+ case 'date':
121
+ case 'datetime':
122
+ case 'timeofday':
123
+ formatter = new g.visualization.DateFormat({pattern: format});
124
+ break;
125
+ }
126
+
127
+ if (formatter) {
128
+ formatter.format(table, i + 1);
129
+ }
130
+ }
131
+ }
132
+
133
  render.draw(table, settings);
134
  };
135
 
languages/visualizer-en_US.mo CHANGED
Binary file
languages/visualizer-en_US.po CHANGED
@@ -2,8 +2,8 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Visualizer\n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2013-08-14 10:03+0300\n"
6
- "PO-Revision-Date: 2013-08-14 10:03+0300\n"
7
  "Last-Translator: Eugene Manuilov <eugene@manuilov.org>\n"
8
  "Language-Team: Eugene Manuilov <eugene@manuilov.org>\n"
9
  "Language: en_US\n"
@@ -50,14 +50,14 @@ msgid "Aligned to the end of the allocated area"
50
  msgstr "Aligned to the end of the allocated area"
51
 
52
  #: classes/Visualizer/Render/Sidebar.php:117
53
- #: classes/Visualizer/Render/Sidebar/Linear.php:167
54
  #: classes/Visualizer/Render/Sidebar/Graph.php:368
55
  #: classes/Visualizer/Render/Sidebar/Type/Candlestick.php:139
56
  msgid "Yes"
57
  msgstr "Yes"
58
 
59
  #: classes/Visualizer/Render/Sidebar.php:118
60
- #: classes/Visualizer/Render/Sidebar/Linear.php:166
61
  #: classes/Visualizer/Render/Sidebar/Graph.php:367
62
  #: classes/Visualizer/Render/Sidebar/Type/Candlestick.php:138
63
  msgid "No"
@@ -113,7 +113,7 @@ msgid "Determines the alignment of the legend."
113
  msgstr "Determines the alignment of the legend."
114
 
115
  #: classes/Visualizer/Render/Sidebar.php:213
116
- #: classes/Visualizer/Render/Sidebar/Type/Gauge.php:227
117
  msgid "Layout & Chart Area"
118
  msgstr "Layout & Chart Area"
119
 
@@ -122,8 +122,8 @@ msgid "Layout"
122
  msgstr "Layout"
123
 
124
  #: classes/Visualizer/Render/Sidebar.php:215
125
- #: classes/Visualizer/Render/Sidebar/Type/Geo.php:300
126
- #: classes/Visualizer/Render/Sidebar/Type/Gauge.php:229
127
  msgid ""
128
  "Configure the total size of the chart. Two formats are supported: a number, "
129
  "or a number followed by %. A simple number is a value in pixels; a number "
@@ -134,19 +134,19 @@ msgstr ""
134
  "followed by % is a percentage."
135
 
136
  #: classes/Visualizer/Render/Sidebar.php:219
137
- #: classes/Visualizer/Render/Sidebar/Type/Geo.php:304
138
- #: classes/Visualizer/Render/Sidebar/Type/Gauge.php:233
139
  msgid "Width And Height Of Chart"
140
  msgstr "Width And Height Of Chart"
141
 
142
  #: classes/Visualizer/Render/Sidebar.php:233
143
- #: classes/Visualizer/Render/Sidebar/Type/Geo.php:318
144
- #: classes/Visualizer/Render/Sidebar/Type/Gauge.php:247
145
  msgid "Determines the total width and height of the chart."
146
  msgstr "Determines the total width and height of the chart."
147
 
148
  #: classes/Visualizer/Render/Sidebar.php:239
149
- #: classes/Visualizer/Render/Sidebar/Type/Geo.php:333
150
  msgid ""
151
  "Configure the background color for the main area of the chart and the chart "
152
  "border width and color."
@@ -155,34 +155,38 @@ msgstr ""
155
  "border width and color."
156
 
157
  #: classes/Visualizer/Render/Sidebar.php:242
158
- #: classes/Visualizer/Render/Sidebar/Type/Geo.php:336
159
  #: classes/Visualizer/Render/Sidebar/Type/Candlestick.php:75
160
  #: classes/Visualizer/Render/Sidebar/Type/Candlestick.php:99
161
  msgid "Stroke Width"
162
  msgstr "Stroke Width"
163
 
164
  #: classes/Visualizer/Render/Sidebar.php:245
165
- #: classes/Visualizer/Render/Sidebar/Type/Geo.php:339
166
  msgid "The chart border width in pixels."
167
  msgstr "The chart border width in pixels."
168
 
169
  #: classes/Visualizer/Render/Sidebar.php:250
170
- #: classes/Visualizer/Render/Sidebar/Type/Geo.php:344
171
  #: classes/Visualizer/Render/Sidebar/Type/Candlestick.php:83
172
  #: classes/Visualizer/Render/Sidebar/Type/Candlestick.php:107
173
  msgid "Stroke Color"
174
  msgstr "Stroke Color"
175
 
176
- #: classes/Visualizer/Render/Sidebar.php:257
177
- #: classes/Visualizer/Render/Sidebar/Type/Geo.php:351
178
  msgid "Background Color"
179
  msgstr "Background Color"
180
 
181
- #: classes/Visualizer/Render/Sidebar.php:264
 
 
 
 
182
  msgid "Chart Area"
183
  msgstr "Chart Area"
184
 
185
- #: classes/Visualizer/Render/Sidebar.php:265
186
  msgid ""
187
  "Configure the placement and size of the chart area (where the chart itself "
188
  "is drawn, excluding axis and legends). Two formats are supported: a number, "
@@ -194,26 +198,56 @@ msgstr ""
194
  "or a number followed by %. A simple number is a value in pixels; a number "
195
  "followed by % is a percentage."
196
 
197
- #: classes/Visualizer/Render/Sidebar.php:269
198
  msgid "Left And Top Margins"
199
  msgstr "Left And Top Margins"
200
 
201
- #: classes/Visualizer/Render/Sidebar.php:283
202
  msgid "Determines how far to draw the chart from the left and top borders."
203
  msgstr "Determines how far to draw the chart from the left and top borders."
204
 
205
- #: classes/Visualizer/Render/Sidebar.php:289
206
  msgid "Width And Height Of Chart Area"
207
  msgstr "Width And Height Of Chart Area"
208
 
209
- #: classes/Visualizer/Render/Sidebar.php:303
210
  msgid "Determines the width and hight of the chart area."
211
  msgstr "Determines the width and hight of the chart area."
212
 
213
- #: classes/Visualizer/Render/Sidebar.php:354
214
  msgid "Hex Value"
215
  msgstr "Hex Value"
216
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
217
  #: classes/Visualizer/Render/Library.php:63
218
  #: classes/Visualizer/Render/Templates.php:69
219
  msgid "Delete"
@@ -238,7 +272,7 @@ msgid "No charts found"
238
  msgstr "No charts found"
239
 
240
  #: classes/Visualizer/Render/Library.php:145
241
- #: classes/Visualizer/Module/Admin.php:209
242
  msgid "Visualizer Library"
243
  msgstr "Visualizer Library"
244
 
@@ -250,6 +284,14 @@ msgstr "Add New"
250
  msgid "Insert"
251
  msgstr "Insert"
252
 
 
 
 
 
 
 
 
 
253
  #: classes/Visualizer/Render/Sidebar/Linear.php:82
254
  msgid "Straight line without curve"
255
  msgstr "Straight line without curve"
@@ -258,58 +300,49 @@ msgstr "Straight line without curve"
258
  msgid "The angles of the line will be smoothed"
259
  msgstr "The angles of the line will be smoothed"
260
 
261
- #: classes/Visualizer/Render/Sidebar/Linear.php:96
262
- #: classes/Visualizer/Render/Sidebar/Linear.php:173
263
- msgid "Line Width"
264
- msgstr "Line Width"
265
 
266
- #: classes/Visualizer/Render/Sidebar/Linear.php:99
267
  msgid ""
268
- "Data line width in pixels. Use zero to hide all lines and show only the "
269
- "points."
270
  msgstr ""
271
- "Data line width in pixels. Use zero to hide all lines and show only the "
272
- "points."
273
-
274
- #: classes/Visualizer/Render/Sidebar/Linear.php:104
275
- #: classes/Visualizer/Render/Sidebar/Linear.php:181
276
- msgid "Point Size"
277
- msgstr "Point Size"
278
 
279
- #: classes/Visualizer/Render/Sidebar/Linear.php:107
280
- msgid "Diameter of displayed points in pixels. Use zero to hide all points."
281
- msgstr "Diameter of displayed points in pixels. Use zero to hide all points."
282
-
283
- #: classes/Visualizer/Render/Sidebar/Linear.php:113
284
- #: classes/Visualizer/Render/Sidebar/Linear.php:190
285
  msgid "Curve Type"
286
  msgstr "Curve Type"
287
 
288
- #: classes/Visualizer/Render/Sidebar/Linear.php:117
289
- #: classes/Visualizer/Render/Sidebar/Linear.php:169
290
- #: classes/Visualizer/Render/Sidebar/Linear.php:194
291
  #: classes/Visualizer/Render/Sidebar/Graph.php:370
292
  #: classes/Visualizer/Render/Sidebar/Type/Candlestick.php:141
293
  msgid "Determines whether the series has to be presented in the legend or not."
294
  msgstr ""
295
  "Determines whether the series has to be presented in the legend or not."
296
 
297
- #: classes/Visualizer/Render/Sidebar/Linear.php:123
298
  #: classes/Visualizer/Render/Sidebar/Type/Candlestick.php:61
299
  msgid "Focus Target"
300
  msgstr "Focus Target"
301
 
302
- #: classes/Visualizer/Render/Sidebar/Linear.php:128
303
  #: classes/Visualizer/Render/Sidebar/Type/Candlestick.php:66
304
  msgid "Focus on a single data point."
305
  msgstr "Focus on a single data point."
306
 
307
- #: classes/Visualizer/Render/Sidebar/Linear.php:129
308
  #: classes/Visualizer/Render/Sidebar/Type/Candlestick.php:67
309
  msgid "Focus on a grouping of all data points along the major axis."
310
  msgstr "Focus on a grouping of all data points along the major axis."
311
 
312
- #: classes/Visualizer/Render/Sidebar/Linear.php:131
313
  #: classes/Visualizer/Render/Sidebar/Type/Candlestick.php:69
314
  msgid ""
315
  "The type of the entity that receives focus on mouse hover. Also affects "
@@ -318,30 +351,26 @@ msgstr ""
318
  "The type of the entity that receives focus on mouse hover. Also affects "
319
  "which entity is selected by mouse click."
320
 
321
- #: classes/Visualizer/Render/Sidebar/Linear.php:144
322
  msgid "Lines Settings"
323
  msgstr "Lines Settings"
324
 
325
- #: classes/Visualizer/Render/Sidebar/Linear.php:161
326
  #: classes/Visualizer/Render/Sidebar/Graph.php:362
327
  #: classes/Visualizer/Render/Sidebar/Type/Candlestick.php:133
328
  msgid "Visible In Legend"
329
  msgstr "Visible In Legend"
330
 
331
- #: classes/Visualizer/Render/Sidebar/Linear.php:176
332
- msgid "Overrides the global line width value for this series."
333
- msgstr "Overrides the global line width value for this series."
334
-
335
- #: classes/Visualizer/Render/Sidebar/Linear.php:184
336
- msgid "Overrides the global point size value for this series."
337
- msgstr "Overrides the global point size value for this series."
338
 
339
- #: classes/Visualizer/Render/Sidebar/Linear.php:199
340
  #: classes/Visualizer/Render/Sidebar/Graph.php:175
341
  #: classes/Visualizer/Render/Sidebar/Graph.php:192
342
  #: classes/Visualizer/Render/Sidebar/Graph.php:276
343
  #: classes/Visualizer/Render/Sidebar/Graph.php:293
344
- #: classes/Visualizer/Render/Sidebar/Graph.php:374
345
  #: classes/Visualizer/Render/Sidebar/Type/Candlestick.php:145
346
  msgid "Color"
347
  msgstr "Color"
@@ -700,11 +729,11 @@ msgstr ""
700
  "The opacity of the markers, where 0.0 is fully transparent and 1.0 is fully "
701
  "opaque."
702
 
703
- #: classes/Visualizer/Render/Sidebar/Type/Geo.php:267
704
  msgid "Magnifying Glass"
705
  msgstr "Magnifying Glass"
706
 
707
- #: classes/Visualizer/Render/Sidebar/Type/Geo.php:269
708
  msgid ""
709
  "Configure magnifying glass settings, which appears, when the user lingers "
710
  "over a cluttered marker. Note: this feature is not supported in browsers "
@@ -714,11 +743,11 @@ msgstr ""
714
  "over a cluttered marker. Note: this feature is not supported in browsers "
715
  "that do not support SVG, i.e. Internet Explorer version 8 or earlier."
716
 
717
- #: classes/Visualizer/Render/Sidebar/Type/Geo.php:272
718
  msgid "Enabled"
719
  msgstr "Enabled"
720
 
721
- #: classes/Visualizer/Render/Sidebar/Type/Geo.php:276
722
  msgid ""
723
  "If yes, when the user lingers over a cluttered marker, a magnifiying glass "
724
  "will be opened."
@@ -726,25 +755,25 @@ msgstr ""
726
  "If yes, when the user lingers over a cluttered marker, a magnifiying glass "
727
  "will be opened."
728
 
729
- #: classes/Visualizer/Render/Sidebar/Type/Geo.php:280
730
  msgid "Zoom Factor"
731
  msgstr "Zoom Factor"
732
 
733
- #: classes/Visualizer/Render/Sidebar/Type/Geo.php:283
734
  msgid ""
735
  "The zoom factor of the magnifying glass. Can be any number greater than 0."
736
  msgstr ""
737
  "The zoom factor of the magnifying glass. Can be any number greater than 0."
738
 
739
- #: classes/Visualizer/Render/Sidebar/Type/Geo.php:298
740
  msgid "Layout Settings"
741
  msgstr "Layout Settings"
742
 
743
- #: classes/Visualizer/Render/Sidebar/Type/Geo.php:323
744
  msgid "Keep Aspect Ratio"
745
  msgstr "Keep Aspect Ratio"
746
 
747
- #: classes/Visualizer/Render/Sidebar/Type/Geo.php:327
748
  msgid ""
749
  "If yes, the map will be drawn at the largest size that can fit inside the "
750
  "chart area at its natural aspect ratio. If only one of the width and height "
@@ -756,7 +785,7 @@ msgstr ""
756
  "options is specified, the other one will be calculated according to the "
757
  "aspect ratio."
758
 
759
- #: classes/Visualizer/Render/Sidebar/Type/Geo.php:328
760
  msgid ""
761
  "If no, the map will be stretched to the exact size of the chart as specified "
762
  "by the width and height options."
@@ -780,48 +809,48 @@ msgstr "Minor Ticks"
780
  msgid "The number of minor tick section in each major tick section."
781
  msgstr "The number of minor tick section in each major tick section."
782
 
783
- #: classes/Visualizer/Render/Sidebar/Type/Gauge.php:101
784
- #: classes/Visualizer/Render/Sidebar/Type/Gauge.php:126
785
  msgid "Green Color"
786
  msgstr "Green Color"
787
 
788
- #: classes/Visualizer/Render/Sidebar/Type/Gauge.php:103
789
  msgid "Configure the green section of the gauge chart."
790
  msgstr "Configure the green section of the gauge chart."
791
 
792
- #: classes/Visualizer/Render/Sidebar/Type/Gauge.php:107
793
- #: classes/Visualizer/Render/Sidebar/Type/Gauge.php:149
794
- #: classes/Visualizer/Render/Sidebar/Type/Gauge.php:191
795
  msgid "From And To Range"
796
  msgstr "From And To Range"
797
 
798
- #: classes/Visualizer/Render/Sidebar/Type/Gauge.php:121
799
  msgid "The lowest and highest values for a range marked by a green color."
800
  msgstr "The lowest and highest values for a range marked by a green color."
801
 
802
- #: classes/Visualizer/Render/Sidebar/Type/Gauge.php:143
803
- #: classes/Visualizer/Render/Sidebar/Type/Gauge.php:168
804
  msgid "Yellow Color"
805
  msgstr "Yellow Color"
806
 
807
- #: classes/Visualizer/Render/Sidebar/Type/Gauge.php:145
808
  msgid "Configure the yellow section of the gauge chart."
809
  msgstr "Configure the yellow section of the gauge chart."
810
 
811
- #: classes/Visualizer/Render/Sidebar/Type/Gauge.php:163
812
  msgid "The lowest and highest values for a range marked by a yellow color."
813
  msgstr "The lowest and highest values for a range marked by a yellow color."
814
 
815
- #: classes/Visualizer/Render/Sidebar/Type/Gauge.php:185
816
- #: classes/Visualizer/Render/Sidebar/Type/Gauge.php:210
817
  msgid "Red Color"
818
  msgstr "Red Color"
819
 
820
- #: classes/Visualizer/Render/Sidebar/Type/Gauge.php:187
821
  msgid "Configure the red section of the gauge chart."
822
  msgstr "Configure the red section of the gauge chart."
823
 
824
- #: classes/Visualizer/Render/Sidebar/Type/Gauge.php:205
825
  msgid "The lowest and highest values for a range marked by a red color."
826
  msgstr "The lowest and highest values for a range marked by a red color."
827
 
@@ -869,19 +898,19 @@ msgstr "No text is displayed"
869
  msgid "The content of the text displayed on the slice."
870
  msgstr "The content of the text displayed on the slice."
871
 
872
- #: classes/Visualizer/Render/Sidebar/Type/Pie.php:91
873
  msgid "Slice Border Color"
874
  msgstr "Slice Border Color"
875
 
876
- #: classes/Visualizer/Render/Sidebar/Type/Pie.php:108
877
  msgid "Residue Settings"
878
  msgstr "Residue Settings"
879
 
880
- #: classes/Visualizer/Render/Sidebar/Type/Pie.php:111
881
  msgid "Visibility Threshold"
882
  msgstr "Visibility Threshold"
883
 
884
- #: classes/Visualizer/Render/Sidebar/Type/Pie.php:114
885
  msgid ""
886
  "The slice relative part, below which a slice will not show individually. All "
887
  "slices that have not passed this threshold will be combined to a single "
@@ -893,11 +922,11 @@ msgstr ""
893
  "slice, whose size is the sum of all their sizes. Default is not to show "
894
  "individually any slice which is smaller than half a degree."
895
 
896
- #: classes/Visualizer/Render/Sidebar/Type/Pie.php:119
897
  msgid "Residue Slice Label"
898
  msgstr "Residue Slice Label"
899
 
900
- #: classes/Visualizer/Render/Sidebar/Type/Pie.php:122
901
  msgid ""
902
  "A label for the combination slice that holds all slices below slice "
903
  "visibility threshold."
@@ -905,15 +934,15 @@ msgstr ""
905
  "A label for the combination slice that holds all slices below slice "
906
  "visibility threshold."
907
 
908
- #: classes/Visualizer/Render/Sidebar/Type/Pie.php:123
909
  msgid "Other"
910
  msgstr "Other"
911
 
912
- #: classes/Visualizer/Render/Sidebar/Type/Pie.php:127
913
  msgid "Residue Slice Color"
914
  msgstr "Residue Slice Color"
915
 
916
- #: classes/Visualizer/Render/Sidebar/Type/Pie.php:144
917
  msgid "Slices Colors"
918
  msgstr "Slices Colors"
919
 
@@ -1027,27 +1056,27 @@ msgstr "Scatter"
1027
  msgid "Candelstick"
1028
  msgstr "Candelstick"
1029
 
1030
- #: classes/Visualizer/Module/Admin.php:128
1031
  msgid "Visualizations"
1032
  msgstr "Visualizations"
1033
 
1034
- #: classes/Visualizer/Module/Admin.php:131
1035
  msgid "From Library"
1036
  msgstr "From Library"
1037
 
1038
- #: classes/Visualizer/Module/Admin.php:132
1039
  msgid "Create New"
1040
  msgstr "Create New"
1041
 
1042
- #: classes/Visualizer/Module/Admin.php:320
1043
  msgid "Library"
1044
  msgstr "Library"
1045
 
1046
- #: classes/Visualizer/Module/Admin.php:343
1047
  msgid "Knowledge Base"
1048
  msgstr "Knowledge Base"
1049
 
1050
- #: classes/Visualizer/Module/Admin.php:349
1051
  msgid "Community"
1052
  msgstr "Community"
1053
 
2
  msgstr ""
3
  "Project-Id-Version: Visualizer\n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2013-10-13 19:27+0300\n"
6
+ "PO-Revision-Date: 2013-10-13 19:27+0300\n"
7
  "Last-Translator: Eugene Manuilov <eugene@manuilov.org>\n"
8
  "Language-Team: Eugene Manuilov <eugene@manuilov.org>\n"
9
  "Language: en_US\n"
50
  msgstr "Aligned to the end of the allocated area"
51
 
52
  #: classes/Visualizer/Render/Sidebar.php:117
53
+ #: classes/Visualizer/Render/Sidebar/Linear.php:171
54
  #: classes/Visualizer/Render/Sidebar/Graph.php:368
55
  #: classes/Visualizer/Render/Sidebar/Type/Candlestick.php:139
56
  msgid "Yes"
57
  msgstr "Yes"
58
 
59
  #: classes/Visualizer/Render/Sidebar.php:118
60
+ #: classes/Visualizer/Render/Sidebar/Linear.php:170
61
  #: classes/Visualizer/Render/Sidebar/Graph.php:367
62
  #: classes/Visualizer/Render/Sidebar/Type/Candlestick.php:138
63
  msgid "No"
113
  msgstr "Determines the alignment of the legend."
114
 
115
  #: classes/Visualizer/Render/Sidebar.php:213
116
+ #: classes/Visualizer/Render/Sidebar/Type/Gauge.php:229
117
  msgid "Layout & Chart Area"
118
  msgstr "Layout & Chart Area"
119
 
122
  msgstr "Layout"
123
 
124
  #: classes/Visualizer/Render/Sidebar.php:215
125
+ #: classes/Visualizer/Render/Sidebar/Type/Geo.php:302
126
+ #: classes/Visualizer/Render/Sidebar/Type/Gauge.php:231
127
  msgid ""
128
  "Configure the total size of the chart. Two formats are supported: a number, "
129
  "or a number followed by %. A simple number is a value in pixels; a number "
134
  "followed by % is a percentage."
135
 
136
  #: classes/Visualizer/Render/Sidebar.php:219
137
+ #: classes/Visualizer/Render/Sidebar/Type/Geo.php:306
138
+ #: classes/Visualizer/Render/Sidebar/Type/Gauge.php:235
139
  msgid "Width And Height Of Chart"
140
  msgstr "Width And Height Of Chart"
141
 
142
  #: classes/Visualizer/Render/Sidebar.php:233
143
+ #: classes/Visualizer/Render/Sidebar/Type/Geo.php:320
144
+ #: classes/Visualizer/Render/Sidebar/Type/Gauge.php:249
145
  msgid "Determines the total width and height of the chart."
146
  msgstr "Determines the total width and height of the chart."
147
 
148
  #: classes/Visualizer/Render/Sidebar.php:239
149
+ #: classes/Visualizer/Render/Sidebar/Type/Geo.php:335
150
  msgid ""
151
  "Configure the background color for the main area of the chart and the chart "
152
  "border width and color."
155
  "border width and color."
156
 
157
  #: classes/Visualizer/Render/Sidebar.php:242
158
+ #: classes/Visualizer/Render/Sidebar/Type/Geo.php:338
159
  #: classes/Visualizer/Render/Sidebar/Type/Candlestick.php:75
160
  #: classes/Visualizer/Render/Sidebar/Type/Candlestick.php:99
161
  msgid "Stroke Width"
162
  msgstr "Stroke Width"
163
 
164
  #: classes/Visualizer/Render/Sidebar.php:245
165
+ #: classes/Visualizer/Render/Sidebar/Type/Geo.php:341
166
  msgid "The chart border width in pixels."
167
  msgstr "The chart border width in pixels."
168
 
169
  #: classes/Visualizer/Render/Sidebar.php:250
170
+ #: classes/Visualizer/Render/Sidebar/Type/Geo.php:346
171
  #: classes/Visualizer/Render/Sidebar/Type/Candlestick.php:83
172
  #: classes/Visualizer/Render/Sidebar/Type/Candlestick.php:107
173
  msgid "Stroke Color"
174
  msgstr "Stroke Color"
175
 
176
+ #: classes/Visualizer/Render/Sidebar.php:258
177
+ #: classes/Visualizer/Render/Sidebar/Type/Geo.php:353
178
  msgid "Background Color"
179
  msgstr "Background Color"
180
 
181
+ #: classes/Visualizer/Render/Sidebar.php:267
182
+ msgid "Transparent background"
183
+ msgstr "Transparent background"
184
+
185
+ #: classes/Visualizer/Render/Sidebar.php:272
186
  msgid "Chart Area"
187
  msgstr "Chart Area"
188
 
189
+ #: classes/Visualizer/Render/Sidebar.php:273
190
  msgid ""
191
  "Configure the placement and size of the chart area (where the chart itself "
192
  "is drawn, excluding axis and legends). Two formats are supported: a number, "
198
  "or a number followed by %. A simple number is a value in pixels; a number "
199
  "followed by % is a percentage."
200
 
201
+ #: classes/Visualizer/Render/Sidebar.php:277
202
  msgid "Left And Top Margins"
203
  msgstr "Left And Top Margins"
204
 
205
+ #: classes/Visualizer/Render/Sidebar.php:291
206
  msgid "Determines how far to draw the chart from the left and top borders."
207
  msgstr "Determines how far to draw the chart from the left and top borders."
208
 
209
+ #: classes/Visualizer/Render/Sidebar.php:297
210
  msgid "Width And Height Of Chart Area"
211
  msgstr "Width And Height Of Chart Area"
212
 
213
+ #: classes/Visualizer/Render/Sidebar.php:311
214
  msgid "Determines the width and hight of the chart area."
215
  msgstr "Determines the width and hight of the chart area."
216
 
217
+ #: classes/Visualizer/Render/Sidebar.php:362
218
  msgid "Hex Value"
219
  msgstr "Hex Value"
220
 
221
+ #: classes/Visualizer/Render/Sidebar.php:475
222
+ msgid "Number Format"
223
+ msgstr "Number Format"
224
+
225
+ #: classes/Visualizer/Render/Sidebar.php:478
226
+ #, php-format
227
+ msgid ""
228
+ "Enter custom format pattern to apply to this series value, similar to the "
229
+ "%sICU pattern set%s. Use something like #,### to get 1,234 as output, or $# "
230
+ "to add dollar sign before digits. Pay attention that if you use #%% "
231
+ "percentage format then your values will be multiplied by 100."
232
+ msgstr ""
233
+ "Enter custom format pattern to apply to this series value, similar to the "
234
+ "%sICU pattern set%s. Use something like #,### to get 1,234 as output, or $# "
235
+ "to add dollar sign before digits. Pay attention that if you use #%% "
236
+ "percentage format then your values will be multiplied by 100."
237
+
238
+ #: classes/Visualizer/Render/Sidebar.php:486
239
+ msgid "Date Format"
240
+ msgstr "Date Format"
241
+
242
+ #: classes/Visualizer/Render/Sidebar.php:489
243
+ #, php-format
244
+ msgid ""
245
+ "Enter custom format pattern to apply to this series value, similar to the "
246
+ "%sICU date and time format%s."
247
+ msgstr ""
248
+ "Enter custom format pattern to apply to this series value, similar to the "
249
+ "%sICU date and time format%s."
250
+
251
  #: classes/Visualizer/Render/Library.php:63
252
  #: classes/Visualizer/Render/Templates.php:69
253
  msgid "Delete"
272
  msgstr "No charts found"
273
 
274
  #: classes/Visualizer/Render/Library.php:145
275
+ #: classes/Visualizer/Module/Admin.php:213
276
  msgid "Visualizer Library"
277
  msgstr "Visualizer Library"
278
 
284
  msgid "Insert"
285
  msgstr "Insert"
286
 
287
+ #: classes/Visualizer/Render/Page.php:74
288
+ msgid "Like the plugin? Show us your love!"
289
+ msgstr "Like the plugin? Show us your love!"
290
+
291
+ #: classes/Visualizer/Render/Page.php:77
292
+ msgid "Rate it on WordPress.org"
293
+ msgstr "Rate it on WordPress.org"
294
+
295
  #: classes/Visualizer/Render/Sidebar/Linear.php:82
296
  msgid "Straight line without curve"
297
  msgstr "Straight line without curve"
300
  msgid "The angles of the line will be smoothed"
301
  msgstr "The angles of the line will be smoothed"
302
 
303
+ #: classes/Visualizer/Render/Sidebar/Linear.php:97
304
+ #: classes/Visualizer/Render/Sidebar/Linear.php:178
305
+ msgid "Line Width And Point Size"
306
+ msgstr "Line Width And Point Size"
307
 
308
+ #: classes/Visualizer/Render/Sidebar/Linear.php:111
309
  msgid ""
310
+ "Data line width and diameter of displayed points in pixels. Use zero to hide "
311
+ "all lines or points."
312
  msgstr ""
313
+ "Data line width and diameter of displayed points in pixels. Use zero to hide "
314
+ "all lines or points."
 
 
 
 
 
315
 
316
+ #: classes/Visualizer/Render/Sidebar/Linear.php:117
317
+ #: classes/Visualizer/Render/Sidebar/Linear.php:202
 
 
 
 
318
  msgid "Curve Type"
319
  msgstr "Curve Type"
320
 
321
+ #: classes/Visualizer/Render/Sidebar/Linear.php:121
322
+ #: classes/Visualizer/Render/Sidebar/Linear.php:173
323
+ #: classes/Visualizer/Render/Sidebar/Linear.php:206
324
  #: classes/Visualizer/Render/Sidebar/Graph.php:370
325
  #: classes/Visualizer/Render/Sidebar/Type/Candlestick.php:141
326
  msgid "Determines whether the series has to be presented in the legend or not."
327
  msgstr ""
328
  "Determines whether the series has to be presented in the legend or not."
329
 
330
+ #: classes/Visualizer/Render/Sidebar/Linear.php:127
331
  #: classes/Visualizer/Render/Sidebar/Type/Candlestick.php:61
332
  msgid "Focus Target"
333
  msgstr "Focus Target"
334
 
335
+ #: classes/Visualizer/Render/Sidebar/Linear.php:132
336
  #: classes/Visualizer/Render/Sidebar/Type/Candlestick.php:66
337
  msgid "Focus on a single data point."
338
  msgstr "Focus on a single data point."
339
 
340
+ #: classes/Visualizer/Render/Sidebar/Linear.php:133
341
  #: classes/Visualizer/Render/Sidebar/Type/Candlestick.php:67
342
  msgid "Focus on a grouping of all data points along the major axis."
343
  msgstr "Focus on a grouping of all data points along the major axis."
344
 
345
+ #: classes/Visualizer/Render/Sidebar/Linear.php:135
346
  #: classes/Visualizer/Render/Sidebar/Type/Candlestick.php:69
347
  msgid ""
348
  "The type of the entity that receives focus on mouse hover. Also affects "
351
  "The type of the entity that receives focus on mouse hover. Also affects "
352
  "which entity is selected by mouse click."
353
 
354
+ #: classes/Visualizer/Render/Sidebar/Linear.php:148
355
  msgid "Lines Settings"
356
  msgstr "Lines Settings"
357
 
358
+ #: classes/Visualizer/Render/Sidebar/Linear.php:165
359
  #: classes/Visualizer/Render/Sidebar/Graph.php:362
360
  #: classes/Visualizer/Render/Sidebar/Type/Candlestick.php:133
361
  msgid "Visible In Legend"
362
  msgstr "Visible In Legend"
363
 
364
+ #: classes/Visualizer/Render/Sidebar/Linear.php:194
365
+ msgid "Overrides the global line width and point size values for this series."
366
+ msgstr "Overrides the global line width and point size values for this series."
 
 
 
 
367
 
368
+ #: classes/Visualizer/Render/Sidebar/Linear.php:211
369
  #: classes/Visualizer/Render/Sidebar/Graph.php:175
370
  #: classes/Visualizer/Render/Sidebar/Graph.php:192
371
  #: classes/Visualizer/Render/Sidebar/Graph.php:276
372
  #: classes/Visualizer/Render/Sidebar/Graph.php:293
373
+ #: classes/Visualizer/Render/Sidebar/Graph.php:376
374
  #: classes/Visualizer/Render/Sidebar/Type/Candlestick.php:145
375
  msgid "Color"
376
  msgstr "Color"
729
  "The opacity of the markers, where 0.0 is fully transparent and 1.0 is fully "
730
  "opaque."
731
 
732
+ #: classes/Visualizer/Render/Sidebar/Type/Geo.php:269
733
  msgid "Magnifying Glass"
734
  msgstr "Magnifying Glass"
735
 
736
+ #: classes/Visualizer/Render/Sidebar/Type/Geo.php:271
737
  msgid ""
738
  "Configure magnifying glass settings, which appears, when the user lingers "
739
  "over a cluttered marker. Note: this feature is not supported in browsers "
743
  "over a cluttered marker. Note: this feature is not supported in browsers "
744
  "that do not support SVG, i.e. Internet Explorer version 8 or earlier."
745
 
746
+ #: classes/Visualizer/Render/Sidebar/Type/Geo.php:274
747
  msgid "Enabled"
748
  msgstr "Enabled"
749
 
750
+ #: classes/Visualizer/Render/Sidebar/Type/Geo.php:278
751
  msgid ""
752
  "If yes, when the user lingers over a cluttered marker, a magnifiying glass "
753
  "will be opened."
755
  "If yes, when the user lingers over a cluttered marker, a magnifiying glass "
756
  "will be opened."
757
 
758
+ #: classes/Visualizer/Render/Sidebar/Type/Geo.php:282
759
  msgid "Zoom Factor"
760
  msgstr "Zoom Factor"
761
 
762
+ #: classes/Visualizer/Render/Sidebar/Type/Geo.php:285
763
  msgid ""
764
  "The zoom factor of the magnifying glass. Can be any number greater than 0."
765
  msgstr ""
766
  "The zoom factor of the magnifying glass. Can be any number greater than 0."
767
 
768
+ #: classes/Visualizer/Render/Sidebar/Type/Geo.php:300
769
  msgid "Layout Settings"
770
  msgstr "Layout Settings"
771
 
772
+ #: classes/Visualizer/Render/Sidebar/Type/Geo.php:325
773
  msgid "Keep Aspect Ratio"
774
  msgstr "Keep Aspect Ratio"
775
 
776
+ #: classes/Visualizer/Render/Sidebar/Type/Geo.php:329
777
  msgid ""
778
  "If yes, the map will be drawn at the largest size that can fit inside the "
779
  "chart area at its natural aspect ratio. If only one of the width and height "
785
  "options is specified, the other one will be calculated according to the "
786
  "aspect ratio."
787
 
788
+ #: classes/Visualizer/Render/Sidebar/Type/Geo.php:330
789
  msgid ""
790
  "If no, the map will be stretched to the exact size of the chart as specified "
791
  "by the width and height options."
809
  msgid "The number of minor tick section in each major tick section."
810
  msgstr "The number of minor tick section in each major tick section."
811
 
812
+ #: classes/Visualizer/Render/Sidebar/Type/Gauge.php:103
813
+ #: classes/Visualizer/Render/Sidebar/Type/Gauge.php:128
814
  msgid "Green Color"
815
  msgstr "Green Color"
816
 
817
+ #: classes/Visualizer/Render/Sidebar/Type/Gauge.php:105
818
  msgid "Configure the green section of the gauge chart."
819
  msgstr "Configure the green section of the gauge chart."
820
 
821
+ #: classes/Visualizer/Render/Sidebar/Type/Gauge.php:109
822
+ #: classes/Visualizer/Render/Sidebar/Type/Gauge.php:151
823
+ #: classes/Visualizer/Render/Sidebar/Type/Gauge.php:193
824
  msgid "From And To Range"
825
  msgstr "From And To Range"
826
 
827
+ #: classes/Visualizer/Render/Sidebar/Type/Gauge.php:123
828
  msgid "The lowest and highest values for a range marked by a green color."
829
  msgstr "The lowest and highest values for a range marked by a green color."
830
 
831
+ #: classes/Visualizer/Render/Sidebar/Type/Gauge.php:145
832
+ #: classes/Visualizer/Render/Sidebar/Type/Gauge.php:170
833
  msgid "Yellow Color"
834
  msgstr "Yellow Color"
835
 
836
+ #: classes/Visualizer/Render/Sidebar/Type/Gauge.php:147
837
  msgid "Configure the yellow section of the gauge chart."
838
  msgstr "Configure the yellow section of the gauge chart."
839
 
840
+ #: classes/Visualizer/Render/Sidebar/Type/Gauge.php:165
841
  msgid "The lowest and highest values for a range marked by a yellow color."
842
  msgstr "The lowest and highest values for a range marked by a yellow color."
843
 
844
+ #: classes/Visualizer/Render/Sidebar/Type/Gauge.php:187
845
+ #: classes/Visualizer/Render/Sidebar/Type/Gauge.php:212
846
  msgid "Red Color"
847
  msgstr "Red Color"
848
 
849
+ #: classes/Visualizer/Render/Sidebar/Type/Gauge.php:189
850
  msgid "Configure the red section of the gauge chart."
851
  msgstr "Configure the red section of the gauge chart."
852
 
853
+ #: classes/Visualizer/Render/Sidebar/Type/Gauge.php:207
854
  msgid "The lowest and highest values for a range marked by a red color."
855
  msgstr "The lowest and highest values for a range marked by a red color."
856
 
898
  msgid "The content of the text displayed on the slice."
899
  msgstr "The content of the text displayed on the slice."
900
 
901
+ #: classes/Visualizer/Render/Sidebar/Type/Pie.php:93
902
  msgid "Slice Border Color"
903
  msgstr "Slice Border Color"
904
 
905
+ #: classes/Visualizer/Render/Sidebar/Type/Pie.php:110
906
  msgid "Residue Settings"
907
  msgstr "Residue Settings"
908
 
909
+ #: classes/Visualizer/Render/Sidebar/Type/Pie.php:113
910
  msgid "Visibility Threshold"
911
  msgstr "Visibility Threshold"
912
 
913
+ #: classes/Visualizer/Render/Sidebar/Type/Pie.php:116
914
  msgid ""
915
  "The slice relative part, below which a slice will not show individually. All "
916
  "slices that have not passed this threshold will be combined to a single "
922
  "slice, whose size is the sum of all their sizes. Default is not to show "
923
  "individually any slice which is smaller than half a degree."
924
 
925
+ #: classes/Visualizer/Render/Sidebar/Type/Pie.php:121
926
  msgid "Residue Slice Label"
927
  msgstr "Residue Slice Label"
928
 
929
+ #: classes/Visualizer/Render/Sidebar/Type/Pie.php:124
930
  msgid ""
931
  "A label for the combination slice that holds all slices below slice "
932
  "visibility threshold."
934
  "A label for the combination slice that holds all slices below slice "
935
  "visibility threshold."
936
 
937
+ #: classes/Visualizer/Render/Sidebar/Type/Pie.php:125
938
  msgid "Other"
939
  msgstr "Other"
940
 
941
+ #: classes/Visualizer/Render/Sidebar/Type/Pie.php:129
942
  msgid "Residue Slice Color"
943
  msgstr "Residue Slice Color"
944
 
945
+ #: classes/Visualizer/Render/Sidebar/Type/Pie.php:146
946
  msgid "Slices Colors"
947
  msgstr "Slices Colors"
948
 
1056
  msgid "Candelstick"
1057
  msgstr "Candelstick"
1058
 
1059
+ #: classes/Visualizer/Module/Admin.php:132
1060
  msgid "Visualizations"
1061
  msgstr "Visualizations"
1062
 
1063
+ #: classes/Visualizer/Module/Admin.php:135
1064
  msgid "From Library"
1065
  msgstr "From Library"
1066
 
1067
+ #: classes/Visualizer/Module/Admin.php:136
1068
  msgid "Create New"
1069
  msgstr "Create New"
1070
 
1071
+ #: classes/Visualizer/Module/Admin.php:324
1072
  msgid "Library"
1073
  msgstr "Library"
1074
 
1075
+ #: classes/Visualizer/Module/Admin.php:347
1076
  msgid "Knowledge Base"
1077
  msgstr "Knowledge Base"
1078
 
1079
+ #: classes/Visualizer/Module/Admin.php:353
1080
  msgid "Community"
1081
  msgstr "Community"
1082
 
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.6
7
- Stable tag: 1.2.0
8
  License: GPL v2.0 or later
9
  License URI: http://www.opensource.org/licenses/gpl-license.php
10
 
@@ -42,6 +42,12 @@ Read how to [create a chart](http://visualizer.madpixels.net/knowledgebase/how-c
42
  1. Upload the files to the `/wp-content/plugins/visualizer/` directory.
43
  1. Activate the plugin through the 'Plugins' menu in WordPress.
44
 
 
 
 
 
 
 
45
  == Screenshots ==
46
 
47
  1. Chart type selection
@@ -52,6 +58,15 @@ Read how to [create a chart](http://visualizer.madpixels.net/knowledgebase/how-c
52
 
53
  == Changelog ==
54
 
 
 
 
 
 
 
 
 
 
55
  = 1.2.0 =
56
  * Implemented minor grid lines settings.
57
  * Implemented view window settings.
@@ -79,4 +94,4 @@ Read how to [create a chart](http://visualizer.madpixels.net/knowledgebase/how-c
79
  * The bug with CSV file uploading was fixed.
80
 
81
  = 1.0.0 =
82
- * The first version of the plugin was implemented.
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.7
7
+ Stable tag: 1.3.0
8
  License: GPL v2.0 or later
9
  License URI: http://www.opensource.org/licenses/gpl-license.php
10
 
42
  1. Upload the files to the `/wp-content/plugins/visualizer/` directory.
43
  1. Activate the plugin through the 'Plugins' menu in WordPress.
44
 
45
+ == Frequently Asked Questions ==
46
+
47
+ = Shortcode does not turn into graph =
48
+
49
+ Pay attention that to turn your shortcodes into graphs, your theme has to have `<?php wp_footer(); ?>` call at the bottom of **footer.php** file.
50
+
51
  == Screenshots ==
52
 
53
  1. Chart type selection
58
 
59
  == Changelog ==
60
 
61
+ = 1.3.0 =
62
+ * Implemented ability to set number and date formatters
63
+ * Implemented ability to select transparent background for a chart
64
+ * Fixed JS bugs which appear when post type editor support is disabled
65
+ * Fixed issue with NULL values for numeric series
66
+ * Fixed invalid charts rendering at "Add Media" library
67
+ * Fixed compatibility issue with another Google API related plugins
68
+ * Added "rate the plugin" box
69
+
70
  = 1.2.0 =
71
  * Implemented minor grid lines settings.
72
  * Implemented view window settings.
94
  * The bug with CSV file uploading was fixed.
95
 
96
  = 1.0.0 =
97
+ * The first version of the plugin was implemented.