PluginProbe
Visualizer – Tables & Charts Manager with Built-in AI Generator / 1.6.6
Visualizer – Tables & Charts Manager with Built-in AI Generator v1.6.6
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/Linear.php +54 -52 3.1.31.6.6 View file →
@@ -18,8 +18,10 @@
18 18 // | MA 02110-1301 USA |
19 19 // +----------------------------------------------------------------------+
20 20 // | Author: Eugene Manuilov <eugene@manuilov.org> |
21 21 // +----------------------------------------------------------------------+
22 +
23 +
22 24 /**
23 25 * Base class for sidebar settings of linear based charts.
24 26 *
25 27 * @category Visualizer
@@ -76,10 +78,10 @@
76 78 $this->_includeFocusTarget = true;
77 79
78 80 $this->_curveTypes = array(
79 81 '' => '',
80 - 'none' => esc_html__( 'Straight line without curve', 'visualizer' ),
81 - 'function' => esc_html__( 'The angles of the line will be smoothed', 'visualizer' ),
82 + 'none' => esc_html__( 'Straight line without curve', Visualizer_Plugin::NAME ),
83 + 'function' => esc_html__( 'The angles of the line will be smoothed', Visualizer_Plugin::NAME ),
82 84 );
83 85 }
84 86
85 87 /**
@@ -92,9 +94,9 @@
92 94 protected function _renderHorizontalAxisGeneralSettings() {
93 95 parent::_renderHorizontalAxisGeneralSettings();
94 96
95 97 self::_renderColorPickerItem(
96 - esc_html__( 'Axis Text Color', 'visualizer' ),
98 + esc_html__( 'Axis Text Color', Visualizer_Plugin::NAME ),
97 99 'vAxis[textStyle]',
98 100 isset( $this->vAxis['textStyle'] ) ? $this->vAxis['textStyle'] : null,
99 101 '#000'
100 102 );
@@ -112,9 +114,9 @@
112 114 protected function _renderVerticalAxisGeneralSettings() {
113 115 parent::_renderVerticalAxisGeneralSettings();
114 116
115 117 self::_renderColorPickerItem(
116 - esc_html__( 'Axis Text Color', 'visualizer' ),
118 + esc_html__( 'Axis Text Color', Visualizer_Plugin::NAME ),
117 119 'hAxis[textStyle]',
118 120 isset( $this->hAxis['textStyle'] ) ? $this->hAxis['textStyle'] : null,
119 121 '#000'
120 122 );
@@ -129,87 +131,87 @@
129 131 *
130 132 * @access protected
131 133 */
132 134 protected function _renderLineSettingsItems() {
133 - echo '<div class="viz-section-item">';
135 + echo '<div class="section-item">';
134 136 echo '<a class="more-info" href="javascript:;">[?]</a>';
135 - echo '<b>', esc_html__( 'Line Width And Point Size', 'visualizer' ), '</b>';
137 + echo '<b>', esc_html__( 'Line Width And Point Size', Visualizer_Plugin::NAME ), '</b>';
136 138
137 - echo '<table class="viz-section-table" cellspacing="0" cellpadding="0" border="0">';
139 + echo '<table class="section-table" cellspacing="0" cellpadding="0" border="0">';
138 140 echo '<tr>';
139 - echo '<td class="viz-section-table-column">';
141 + echo '<td class="section-table-column">';
140 142 echo '<input type="text" name="lineWidth" class="control-text" value="', esc_attr( $this->lineWidth ), '" placeholder="2">';
141 143 echo '</td>';
142 - echo '<td class="viz-section-table-column">';
144 + echo '<td class="section-table-column">';
143 145 echo '<input type="text" name="pointSize" class="control-text" value="', esc_attr( $this->pointSize ), '" placeholder="0">';
144 146 echo '</td>';
145 147 echo '</tr>';
146 148 echo '</table>';
147 149
148 - echo '<p class="viz-section-description">';
149 - esc_html_e( 'Data line width and diameter of displayed points in pixels. Use zero to hide all lines or points.', 'visualizer' );
150 + echo '<p class="section-description">';
151 + esc_html_e( 'Data line width and diameter of displayed points in pixels. Use zero to hide all lines or points.', Visualizer_Plugin::NAME );
150 152 echo '</p>';
151 153 echo '</div>';
152 154
153 155 if ( $this->_includeCurveTypes ) {
154 156 self::_renderSelectItem(
155 - esc_html__( 'Curve Type', 'visualizer' ),
157 + esc_html__( 'Curve Type', Visualizer_Plugin::NAME ),
156 158 'curveType',
157 159 $this->curveType,
158 160 $this->_curveTypes,
159 - esc_html__( 'Determines whether the series has to be presented in the legend or not.', 'visualizer' )
161 + esc_html__( 'Determines whether the series has to be presented in the legend or not.', Visualizer_Plugin::NAME )
160 162 );
161 163 }
162 164
163 - echo '<div class="viz-section-delimiter"></div>';
165 + echo '<div class="section-delimiter"></div>';
164 166
165 167 if ( $this->_includeFocusTarget ) {
166 168 self::_renderSelectItem(
167 - esc_html__( 'Focus Target', 'visualizer' ),
169 + esc_html__( 'Focus Target', Visualizer_Plugin::NAME ),
168 170 'focusTarget',
169 171 $this->focusTarget,
170 172 array(
171 173 '' => '',
172 - 'datum' => esc_html__( 'Focus on a single data point.', 'visualizer' ),
173 - 'category' => esc_html__( 'Focus on a grouping of all data points along the major axis.', 'visualizer' ),
174 + 'datum' => esc_html__( 'Focus on a single data point.', Visualizer_Plugin::NAME ),
175 + 'category' => esc_html__( 'Focus on a grouping of all data points along the major axis.', Visualizer_Plugin::NAME ),
174 176 ),
175 - esc_html__( 'The type of the entity that receives focus on mouse hover. Also affects which entity is selected by mouse click.', 'visualizer' )
177 + esc_html__( 'The type of the entity that receives focus on mouse hover. Also affects which entity is selected by mouse click.', Visualizer_Plugin::NAME )
176 178 );
177 179 }
178 180
179 181 self::_renderSelectItem(
180 - esc_html__( 'Selection Mode', 'visualizer' ),
182 + esc_html__( 'Selection Mode', Visualizer_Plugin::NAME ),
181 183 'selectionMode',
182 184 $this->selectionMode,
183 185 array(
184 186 '' => '',
185 - 'single' => esc_html__( 'Single data point', 'visualizer' ),
186 - 'multiple' => esc_html__( 'Multiple data points', 'visualizer' ),
187 + 'single' => esc_html__( 'Single data point', Visualizer_Plugin::NAME ),
188 + 'multiple' => esc_html__( 'Multiple data points', Visualizer_Plugin::NAME ),
187 189 ),
188 - esc_html__( 'Determines how many data points an user can select on a chart.', 'visualizer' )
190 + esc_html__( 'Determines how many data points an user can select on a chart.', Visualizer_Plugin::NAME )
189 191 );
190 192
191 193 self::_renderSelectItem(
192 - esc_html__( 'Aggregation Target', 'visualizer' ),
194 + esc_html__( 'Aggregation Target', Visualizer_Plugin::NAME ),
193 195 'aggregationTarget',
194 196 $this->aggregationTarget,
195 197 array(
196 198 '' => '',
197 - 'category' => esc_html__( 'Group selected data by x-value', 'visualizer' ),
198 - 'series' => esc_html__( 'Group selected data by series', 'visualizer' ),
199 - 'auto' => esc_html__( 'Group selected data by x-value if all selections have the same x-value, and by series otherwise', 'visualizer' ),
200 - 'none' => esc_html__( 'Show only one tooltip per selection', 'visualizer' ),
199 + 'category' => esc_html__( 'Group selected data by x-value', Visualizer_Plugin::NAME ),
200 + 'series' => esc_html__( 'Group selected data by series', Visualizer_Plugin::NAME ),
201 + 'auto' => esc_html__( 'Group selected data by x-value if all selections have the same x-value, and by series otherwise', Visualizer_Plugin::NAME ),
202 + 'none' => esc_html__( 'Show only one tooltip per selection', Visualizer_Plugin::NAME ),
201 203 ),
202 - esc_html__( 'Determines how multiple data selections are rolled up into tooltips. To make it working you need to set multiple selection mode and tooltip trigger to display it when an user selects an element.', 'visualizer' )
204 + esc_html__( 'Determines how multiple data selections are rolled up into tooltips. To make it working you need to set multiple selection mode and tooltip trigger to display it when an user selects an element.', Visualizer_Plugin::NAME )
203 205 );
204 206
205 - echo '<div class="viz-section-delimiter"></div>';
207 + echo '<div class="section-delimiter"></div>';
206 208
207 209 self::_renderTextItem(
208 - esc_html__( 'Point Opacity', 'visualizer' ),
210 + esc_html__( 'Point Opacity', Visualizer_Plugin::NAME ),
209 211 'dataOpacity',
210 212 $this->dataOpacity,
211 - esc_html__( 'The transparency of data points, with 1.0 being completely opaque and 0.0 fully transparent.', 'visualizer' ),
213 + esc_html__( 'The transparency of data points, with 1.0 being completely opaque and 0.0 fully transparent.', Visualizer_Plugin::NAME ),
212 214 '1.0'
213 215 );
214 216 }
215 217
@@ -220,9 +222,9 @@
220 222 *
221 223 * @access protected
222 224 */
223 225 protected function _renderLineSettings() {
224 - self::_renderGroupStart( esc_html__( 'Lines Settings', 'visualizer' ) );
226 + self::_renderGroupStart( esc_html__( 'Lines Settings', Visualizer_Plugin::NAME ) );
225 227 self::_renderSectionStart();
226 228 $this->_renderLineSettingsItems();
227 229 self::_renderSectionEnd();
228 230 self::_renderGroupEnd();
@@ -237,38 +239,38 @@
237 239 * @param int $index The series index.
238 240 */
239 241 protected function _renderSeries( $index ) {
240 242 self::_renderSelectItem(
241 - esc_html__( 'Visible In Legend', 'visualizer' ),
243 + esc_html__( 'Visible In Legend', Visualizer_Plugin::NAME ),
242 244 'series[' . $index . '][visibleInLegend]',
243 - isset( $this->series[ $index ]['visibleInLegend'] ) ? $this->series[ $index ]['visibleInLegend'] : '',
245 + isset( $this->series[$index]['visibleInLegend'] ) ? $this->series[$index]['visibleInLegend'] : '',
244 246 array(
245 247 '' => '',
246 - '0' => esc_html__( 'No', 'visualizer' ),
247 - '1' => esc_html__( 'Yes', 'visualizer' ),
248 + '0' => esc_html__( 'No', Visualizer_Plugin::NAME ),
249 + '1' => esc_html__( 'Yes', Visualizer_Plugin::NAME ),
248 250 ),
249 - esc_html__( 'Determines whether the series has to be presented in the legend or not.', 'visualizer' )
251 + esc_html__( 'Determines whether the series has to be presented in the legend or not.', Visualizer_Plugin::NAME )
250 252 );
251 253
252 - echo '<div class="viz-section-item">';
254 + echo '<div class="section-item">';
253 255 echo '<a class="more-info" href="javascript:;">[?]</a>';
254 - echo '<b>', esc_html__( 'Line Width And Point Size', 'visualizer' ), '</b>';
256 + echo '<b>', esc_html__( 'Line Width And Point Size', Visualizer_Plugin::NAME ), '</b>';
255 257
256 - echo '<table class="viz-section-table" cellspacing="0" cellpadding="0" border="0">';
258 + echo '<table class="section-table" cellspacing="0" cellpadding="0" border="0">';
257 259 echo '<tr>';
258 - echo '<td class="viz-section-table-column">';
259 - $line_width = isset( $this->series[ $index ]['lineWidth'] ) ? $this->series[ $index ]['lineWidth'] : '';
260 + echo '<td class="section-table-column">';
261 + $line_width = isset( $this->series[$index]['lineWidth'] ) ? $this->series[$index]['lineWidth'] : '';
260 262 echo '<input type="text" name="series[', $index, '][lineWidth]" class="control-text" value="', esc_attr( $line_width ), '" placeholder="2">';
261 263 echo '</td>';
262 - echo '<td class="viz-section-table-column">';
263 - $point_size = isset( $this->series[ $index ]['pointSize'] ) ? $this->series[ $index ]['pointSize'] : '';
264 + echo '<td class="section-table-column">';
265 + $point_size = isset( $this->series[$index]['pointSize'] ) ? $this->series[$index]['pointSize'] : '';
264 266 echo '<input type="text" name="series[', $index, '][pointSize]" class="control-text" value="', esc_attr( $point_size ), '" placeholder="0">';
265 267 echo '</td>';
266 268 echo '</tr>';
267 269 echo '</table>';
268 270
269 - echo '<p class="viz-section-description">';
270 - esc_html_e( 'Overrides the global line width and point size values for this series.', 'visualizer' );
271 + echo '<p class="section-description">';
272 + esc_html_e( 'Overrides the global line width and point size values for this series.', Visualizer_Plugin::NAME );
271 273 echo '</p>';
272 274 echo '</div>';
273 275
274 276 $this->_renderFormatField( $index );
@@ -274,21 +276,21 @@
274 276 $this->_renderFormatField( $index );
275 277
276 278 if ( $this->_includeCurveTypes ) {
277 279 self::_renderSelectItem(
278 - esc_html__( 'Curve Type', 'visualizer' ),
280 + esc_html__( 'Curve Type', Visualizer_Plugin::NAME ),
279 281 'series[' . $index . '][curveType]',
280 - isset( $this->series[ $index ]['curveType'] ) ? $this->series[ $index ]['curveType'] : '',
282 + isset( $this->series[$index]['curveType'] ) ? $this->series[$index]['curveType'] : '',
281 283 $this->_curveTypes,
282 - esc_html__( 'Determines whether the series has to be presented in the legend or not.', 'visualizer' )
284 + esc_html__( 'Determines whether the series has to be presented in the legend or not.', Visualizer_Plugin::NAME )
283 285 );
284 286 }
285 287
286 288 self::_renderColorPickerItem(
287 - esc_html__( 'Color', 'visualizer' ),
289 + esc_html__( 'Color', Visualizer_Plugin::NAME ),
288 290 'series[' . $index . '][color]',
289 - isset( $this->series[ $index ]['color'] ) ? $this->series[ $index ]['color'] : null,
291 + isset( $this->series[$index]['color'] ) ? $this->series[$index]['color'] : null,
290 292 null
291 293 );
292 294 }
293 295
294 -}
296 +}