PluginProbe
Visualizer – Tables & Charts Manager with Built-in AI Generator / 3.10.0
Visualizer – Tables & Charts Manager with Built-in AI Generator v3.10.0
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/Module/Wizard.php +2 -101 3.10.13.10.0 View file →
@@ -205,9 +205,8 @@
205 205 }
206 206
207 207 $source = new Visualizer_Source_Csv( VISUALIZER_ABSPATH . DIRECTORY_SEPARATOR . 'samples' . DIRECTORY_SEPARATOR . $chart_type . '.csv' );
208 208 $source->fetch();
209 - $series = $source->getSeries();
210 209 $response = array(
211 210 'success' => 2,
212 211 'message' => __( 'Something went wrong while importing the chart', 'visualizer' ),
213 212 );
@@ -228,113 +227,15 @@
228 227
229 228 update_post_meta( $chart_id, Visualizer_Plugin::CF_CHART_TYPE, $chart_type );
230 229 update_post_meta( $chart_id, Visualizer_Plugin::CF_DEFAULT_DATA, 1 );
231 230 update_post_meta( $chart_id, Visualizer_Plugin::CF_SOURCE, $source->getSourceName() );
232 - update_post_meta( $chart_id, Visualizer_Plugin::CF_SERIES, $series );
231 + update_post_meta( $chart_id, Visualizer_Plugin::CF_SERIES, $source->getSeries() );
233 232 update_post_meta( $chart_id, Visualizer_Plugin::CF_CHART_LIBRARY, '' );
234 -
235 - $setting_series = array();
236 - foreach ( $series as $s ) {
237 - $setting_series[] = array(
238 - 'visibleInLegend' => '',
239 - 'lineWidth' => '',
240 - 'pointSize' => '',
241 - 'format' => '',
242 - 'curveType' => '',
243 - 'color' => '',
244 - 'role' => '',
245 - );
246 - }
247 233 update_post_meta(
248 234 $chart_id,
249 235 Visualizer_Plugin::CF_SETTINGS,
250 236 array(
251 - 'title' => '',
252 - 'titlePosition' => '',
253 - 'titleTextStyle' => array(
254 - 'color' => '#000',
255 - ),
256 - 'legend' => array(
257 - 'position' => 'right',
258 - 'alignment' => 15,
259 - 'textStyle' => array(
260 - 'color' => '#000',
261 - 'text' => 'both',
262 - ),
263 - ),
264 - 'tooltip' => array(
265 - 'trigger' => 'focus',
266 - 'showColorCode' => 0,
267 - 'showColorCode' => 0,
268 - ),
269 - 'animation' => array(
270 - 'startup' => 0,
271 - 'duration' => '',
272 - 'easing' => 'linear',
273 - ),
274 - 'width' => '',
275 - 'height' => '',
276 - 'keepAspectRatio' => false,
277 - 'isStacked' => false,
278 - 'lazy_load_chart' => true,
279 - 'backgroundColor' => array(
280 - 'strokeWidth' => '',
281 - 'stroke' => '',
282 - 'fill' => '',
283 - ),
284 - 'chartArea' => array(
285 - 'left' => '',
286 - 'top' => '',
287 - 'width' => '',
288 - 'height' => '',
289 - ),
290 - 'focusTarget' => 'datum',
291 - 'series' => $setting_series,
292 - 'slices' => array(),
293 - 'vAxis' => array(
294 - 'title' => '',
295 - 'textPosition' => '',
296 - 'direction' => 1,
297 - 'baselineColor' => '#000',
298 - 'textStyle' => array(
299 - 'color' => '#000',
300 - ),
301 - 'format' => '',
302 - 'gridlines' => array(
303 - 'count' => '',
304 - 'color' => '#ccc',
305 - ),
306 - 'minorGridlines' => array(
307 - 'count' => '',
308 - 'color' => '',
309 - ),
310 - 'viewWindow' => array(
311 - 'max' => '',
312 - 'min' => '',
313 - ),
314 - ),
315 - 'hAxis' => array(
316 - 'title' => '',
317 - 'textPosition' => '',
318 - 'direction' => 1,
319 - 'baselineColor' => '#000',
320 - 'textStyle' => array(
321 - 'color' => '#000',
322 - ),
323 - 'format' => '',
324 - 'gridlines' => array(
325 - 'count' => '',
326 - 'color' => '#ccc',
327 - ),
328 - 'minorGridlines' => array(
329 - 'count' => '',
330 - 'color' => '',
331 - ),
332 - 'viewWindow' => array(
333 - 'max' => '',
334 - 'min' => '',
335 - ),
336 - ),
237 + 'focusTarget' => 'datum',
337 238 )
338 239 );
339 240 $wizard_data = array(
340 241 'chart_type' => $chart_type,