PluginProbe
Visualizer – Tables & Charts Manager with Built-in AI Generator / 3.4.9
Visualizer – Tables & Charts Manager with Built-in AI Generator v3.4.9
4.0.8 4.0.7 4.0.6 4.0.5 4.0.4 4.0.3 3.0.5 3.0.6 3.0.7 3.0.8 3.0.9 3.1.0 3.1.1 3.1.2 3.1.3 3.10.0 3.10.1 3.10.10 3.10.11 3.10.12 3.10.13 3.10.14 3.10.15 3.10.2 3.10.3 All 149 releases
← All changes | classes/Visualizer/Render/Sidebar/Google.php +6 -27 3.10.123.4.9 View file →
@@ -58,9 +58,9 @@
58 58 $this->_library = 'google';
59 59 parent::__construct( $data );
60 60
61 61 $this->_legendPositions = array(
62 - '' => esc_html__( 'Default', 'visualizer' ),
62 + '' => '',
63 63 'left' => esc_html__( 'Left of the chart', 'visualizer' ),
64 64 'right' => esc_html__( 'Right of the chart', 'visualizer' ),
65 65 'top' => esc_html__( 'Above the chart', 'visualizer' ),
66 66 'bottom' => esc_html__( 'Below the chart', 'visualizer' ),
@@ -100,15 +100,13 @@
100 100 * Loads the assets.
101 101 */
102 102 function load_google_assets( $deps, $is_frontend ) {
103 103 wp_register_script( 'google-jsapi', '//www.gstatic.com/charts/loader.js', array(), null, true );
104 - wp_register_script( 'dom-to-image', VISUALIZER_ABSURL . 'js/lib/dom-to-image.min.js', array(), null, true );
105 104 wp_register_script(
106 105 'visualizer-render-google-lib',
107 106 VISUALIZER_ABSURL . 'js/render-google.js',
108 107 array(
109 108 'google-jsapi',
110 - 'dom-to-image',
111 109 ),
112 110 Visualizer_Plugin::VERSION,
113 111 true
114 112 );
@@ -149,9 +147,8 @@
149 147 'emphasis' => esc_html__( 'Emphasis', 'visualizer' ),
150 148 'scope' => esc_html__( 'Scope', 'visualizer' ),
151 149 'style' => esc_html__( 'Style', 'visualizer' ),
152 150 'tooltip' => esc_html__( 'Tooltip', 'visualizer' ),
153 - 'interval' => esc_html__( 'Interval', 'visualizer' ),
154 151 ),
155 152 sprintf( esc_html__( 'Determines whether the series has to be used for a special role as mentioned in %1$shere%2$s. You can view a few examples %3$shere%4$s.', 'visualizer' ), '<a href="https://developers.google.com/chart/interactive/docs/roles#what-roles-are-available" target="_blank">', '</a>', '<a href="https://docs.themeisle.com/article/1160-roles-for-series-visualizer" target="_blank">', '</a>' )
156 153 );
157 154 }
@@ -210,9 +207,9 @@
210 207 self::_renderSectionStart( esc_html__( 'Legend', 'visualizer' ), false );
211 208 self::_renderSelectItem(
212 209 esc_html__( 'Position', 'visualizer' ),
213 210 'legend[position]',
214 - isset( $this->legend['position'] ) ? $this->legend['position'] : '',
211 + $this->legend['position'],
215 212 $this->_legendPositions,
216 213 esc_html__( 'Determines where to place the legend, compared to the chart area.', 'visualizer' )
217 214 );
218 215
@@ -218,9 +215,9 @@
218 215
219 216 self::_renderSelectItem(
220 217 esc_html__( 'Alignment', 'visualizer' ),
221 218 'legend[alignment]',
222 - isset( $this->legend['alignment'] ) ? $this->legend['alignment'] : '',
219 + $this->legend['alignment'],
223 220 $this->_alignments,
224 221 esc_html__( 'Determines the alignment of the legend.', 'visualizer' )
225 222 );
226 223
@@ -236,25 +233,9 @@
236 233 $this->_renderTooltipSettigns();
237 234 self::_renderSectionEnd();
238 235
239 236 $this->_renderAnimationSettings();
240 - self::_renderSectionStart( esc_html__( 'License & Creator', 'visualizer' ), false );
241 - self::_renderTextItem(
242 - esc_html__( 'License', 'visualizer' ),
243 - 'license',
244 - $this->license,
245 - ''
246 - );
247 - self::_renderTextItem(
248 - esc_html__( 'Creator', 'visualizer' ),
249 - 'creator',
250 - $this->creator,
251 - ''
252 - );
253 - self::_renderSectionEnd();
254 237
255 - self::_renderChartImageSettings();
256 -
257 238 do_action( 'visualizer_chart_settings', get_class( $this ), $this->_data, 'general', array( 'generic' => true ) );
258 239
259 240 self::_renderGroupEnd();
260 241 }
@@ -317,9 +298,9 @@
317 298 esc_html__( 'Trigger', 'visualizer' ),
318 299 'tooltip[trigger]',
319 300 isset( $this->tooltip['trigger'] ) ? $this->tooltip['trigger'] : null,
320 301 array(
321 - '' => esc_html__( 'Default', 'visualizer' ),
302 + '' => '',
322 303 'focus' => esc_html__( 'The tooltip will be displayed when the user hovers over an element', 'visualizer' ),
323 304 'selection' => esc_html__( 'The tooltip will be displayed when the user selects an element', 'visualizer' ),
324 305 'none' => esc_html__( 'The tooltip will not be displayed', 'visualizer' ),
325 306 ),
@@ -411,14 +392,12 @@
411 392
412 393 echo '<table class="viz-section-table" cellspacing="0" cellpadding="0" border="0">';
413 394 echo '<tr>';
414 395 echo '<td class="viz-section-table-column">';
415 - $chartarea_left = isset( $this->chartArea['left'] ) ? $this->chartArea['left'] : '';
416 - echo '<input type="text" name="chartArea[left]" class="control-text" value="', $chartarea_left || '0' === $chartarea_left ? esc_attr( $chartarea_left ) : '', '" placeholder="20%">';
396 + echo '<input type="text" name="chartArea[left]" class="control-text" value="', $this->chartArea['left'] || $this->chartArea['left'] === '0' ? esc_attr( $this->chartArea['left'] ) : '', '" placeholder="20%">';
417 397 echo '</td>';
418 398 echo '<td class="viz-section-table-column">';
419 - $chartarea_top = isset( $this->chartArea['top'] ) ? $this->chartArea['top'] : '';
420 - echo '<input type="text" name="chartArea[top]" class="control-text" value="', $chartarea_top || '0' === $chartarea_top ? esc_attr( $chartarea_top ) : '', '" placeholder="20%">';
399 + echo '<input type="text" name="chartArea[top]" class="control-text" value="', $this->chartArea['top'] || $this->chartArea['top'] === '0' ? esc_attr( $this->chartArea['top'] ) : '', '" placeholder="20%">';
421 400 echo '</td>';
422 401 echo '</tr>';
423 402 echo '</table>';
424 403