Populate series data dynamically
-
Hello,
I am trying to follow the recommendations from below link to populate the data in the output.
https://docs.themeisle.com/article/605-how-can-i-populate-chart-series-and-data-dynamicallyWhat I have done so far is,
1) created a chart and use the short code <?php echo do_shortcode( ‘[visualizer id= 9242 series=”mycustom_series_filter” data=”mycustom_data_filter” settings=”mycustom_filter_settings”]’ ); ?>
2) Added code in the theme;s function.php to see if the code gets called .
I have added .However I do not see any effect on the graph. Is it possible that I have missed something in my code ?
// filter for chart add_filter( 'mycustom_series_filter', 'myplugin_filter_chart_series', 10, 3 ); function myplugin_filter_chart_series( $series, $chart_id, $type ) { // do your stuff here echo "Hello world"; $series = array("Volvo", "BMW", "Toyota"); return $series; } add_filter( 'mycustom_data_filter', 'myplugin_filter_chart_data', 10, 3 ); function myplugin_filter_chart_data( $data, $chart_id, $type ) { // do your stuff here echo "Hello world"; return $data; } add_filter( 'mycustom_filter_settings', 'myplugin_filter_chart_settings', 10, 3 ); function myplugin_filter_chart_settings( $data, $chart_id, $type ) { // do your stuff here echo "Hello world"; return $data; }The page I need help with: [log in to see the link]
The topic ‘Populate series data dynamically’ is closed to new replies.