Skip to content

Commit 4df64b4

Browse files
Fix multiple chart rendering issue #851
1 parent eaf3aa4 commit 4df64b4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

classes/Visualizer/Module/Frontend.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -353,6 +353,10 @@ public function renderChart( $atts ) {
353353
return '<div id="' . $id . '"' . $this->getHtmlAttributes( $attributes ) . '>' . wp_get_attachment_image( $chart_image, 'full' ) . '</div>';
354354
}
355355
}
356+
// Unset chart image base64 string.
357+
if ( isset( $settings['chart-img'] ) ) {
358+
unset( $settings['chart-img'] );
359+
}
356360

357361
// add chart to the array
358362
$this->_charts[ $id ] = array(

0 commit comments

Comments
 (0)