PluginProbe
Visualizer – Tables & Charts Manager with Built-in AI Generator / 3.3.2
Visualizer – Tables & Charts Manager with Built-in AI Generator v3.3.2
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 3.10.4 All 148 releases
← All changes | classes/Visualizer/Render/Sidebar/Graph.php +29 -15 3.0.83.3.2 View file →
@@ -28,9 +28,9 @@
28 28 *
29 29 * @since 1.0.0
30 30 * @abstract
31 31 */
32 -abstract class Visualizer_Render_Sidebar_Graph extends Visualizer_Render_Sidebar {
32 +abstract class Visualizer_Render_Sidebar_Graph extends Visualizer_Render_Sidebar_Google {
33 33
34 34 /**
35 35 * Determines whether we need to render vertical gridlines options or not.
36 36 *
@@ -121,8 +121,18 @@
121 121 $this->axisTitlesPosition,
122 122 $this->_positions,
123 123 esc_html__( 'Determines where to place the axis titles, compared to the chart area.', 'visualizer' )
124 124 );
125 +
126 + echo '<div class="viz-section-delimiter"></div>';
127 +
128 + self::_renderTextAreaItem(
129 + esc_html__( 'Chart Description', 'visualizer' ),
130 + 'description',
131 + $this->description,
132 + sprintf( esc_html__( 'Description to display in the structured data schema as explained %1$shere%2$s', 'visualizer' ), '<a href="https://developers.google.com/search/docs/data-types/dataset#dataset" target="_blank">', '</a>' )
133 + );
134 +
125 135 }
126 136
127 137 /**
128 138 * Renders general settings block for horizontal axis settings.
@@ -140,10 +150,10 @@
140 150 );
141 151
142 152 self::_renderSelectItem(
143 153 esc_html__( 'Text Position', 'visualizer' ),
144 - 'vAxis[textPosition]',
145 - isset( $this->vAxis['textPosition'] ) ? $this->vAxis['textPosition'] : '',
154 + 'hAxis[textPosition]',
155 + isset( $this->hAxis['textPosition'] ) ? $this->hAxis['textPosition'] : '',
146 156 $this->_positions,
147 157 esc_html__( 'Position of the horizontal axis text, relative to the chart area.', 'visualizer' )
148 158 );
149 159
@@ -183,18 +193,18 @@
183 193 if ( $this->_horizontalGridLines ) {
184 194 self::_renderSectionStart( esc_html__( 'Grid Lines', 'visualizer' ), false );
185 195 self::_renderTextItem(
186 196 esc_html__( 'Count', 'visualizer' ),
187 - 'vAxis[gridlines][count]',
188 - isset( $this->vAxis['gridlines']['count'] ) ? $this->vAxis['gridlines']['count'] : '',
189 - esc_html__( 'The number of horizontal gridlines inside the chart area. Minimum value is 2. Specify -1 to automatically compute the number of gridlines.', 'visualizer' ),
197 + 'hAxis[gridlines][count]',
198 + isset( $this->hAxis['gridlines']['count'] ) ? $this->hAxis['gridlines']['count'] : '',
199 + esc_html__( 'The number of vertical gridlines inside the chart area. Minimum value is 2. Specify -1 to automatically compute the number of gridlines.', 'visualizer' ),
190 200 5
191 201 );
192 202
193 203 self::_renderColorPickerItem(
194 204 esc_html__( 'Color', 'visualizer' ),
195 - 'vAxis[gridlines][color]',
196 - isset( $this->vAxis['gridlines']['color'] ) ? $this->vAxis['gridlines']['color'] : null,
205 + 'hAxis[gridlines][color]',
206 + isset( $this->hAxis['gridlines']['color'] ) ? $this->hAxis['gridlines']['color'] : null,
197 207 '#ccc'
198 208 );
199 209 self::_renderSectionEnd();
200 210
@@ -252,10 +262,10 @@
252 262 );
253 263
254 264 self::_renderSelectItem(
255 265 esc_html__( 'Text Position', 'visualizer' ),
256 - 'hAxis[textPosition]',
257 - isset( $this->hAxis['textPosition'] ) ? $this->hAxis['textPosition'] : '',
266 + 'vAxis[textPosition]',
267 + isset( $this->vAxis['textPosition'] ) ? $this->vAxis['textPosition'] : '',
258 268 $this->_positions,
259 269 esc_html__( 'Position of the vertical axis text, relative to the chart area.', 'visualizer' )
260 270 );
261 271
@@ -295,18 +305,18 @@
295 305 if ( $this->_verticalGridLines ) {
296 306 self::_renderSectionStart( esc_html__( 'Grid Lines', 'visualizer' ), false );
297 307 self::_renderTextItem(
298 308 esc_html__( 'Count', 'visualizer' ),
299 - 'hAxis[gridlines][count]',
300 - isset( $this->hAxis['gridlines']['count'] ) ? $this->hAxis['gridlines']['count'] : '',
301 - esc_html__( 'The number of vertical gridlines inside the chart area. Minimum value is 2. Specify -1 to automatically compute the number of gridlines.', 'visualizer' ),
309 + 'vAxis[gridlines][count]',
310 + isset( $this->vAxis['gridlines']['count'] ) ? $this->vAxis['gridlines']['count'] : '',
311 + esc_html__( 'The number of horizontal gridlines inside the chart area. Minimum value is 2. Specify -1 to automatically compute the number of gridlines.', 'visualizer' ),
302 312 5
303 313 );
304 314
305 315 self::_renderColorPickerItem(
306 316 esc_html__( 'Color', 'visualizer' ),
307 - 'hAxis[gridlines][color]',
308 - isset( $this->hAxis['gridlines']['color'] ) ? $this->hAxis['gridlines']['color'] : null,
317 + 'vAxis[gridlines][color]',
318 + isset( $this->vAxis['gridlines']['color'] ) ? $this->vAxis['gridlines']['color'] : null,
309 319 '#ccc'
310 320 );
311 321 self::_renderSectionEnd();
312 322
@@ -368,8 +378,12 @@
368 378 * @access protected
369 379 */
370 380 protected function _renderSeriesSettings() {
371 381 self::_renderGroupStart( esc_html__( 'Series Settings', 'visualizer' ) );
382 + self::_renderSectionStart();
383 + self::_renderSectionDescription( esc_html__( 'If you have just updated/modified the chart data, you may need to save it before the new data reflects in the settings.', 'visualizer' ), 'viz-info-msg' );
384 + self::_renderSectionEnd();
385 +
372 386 for ( $i = 1, $cnt = count( $this->__series ); $i < $cnt; $i++ ) {
373 387 if ( ! empty( $this->__series[ $i ]['label'] ) ) {
374 388 self::_renderSectionStart( esc_html( $this->__series[ $i ]['label'] ), false );
375 389 $this->_renderSeries( $i - 1 );