It seems like you are setting up the common Chart Options in a JS file but as all the charts are going to have different footer caption you shouldn’t set it as a common option.
As you specified that the post has three charts that means the captionLabel
JavaScript variable is getting declared and being assigned the value 3 times if that is part of shortcode. So the final value assigned to the captionLabel
will be label 3
and then the chart options are being set in the js file. Thus, all your charts are having label 3
as footer caption.
May be you can set the label in Chart Options on per chart basis.
Related Posts:
- Run shortcode at certain resolution
- Using a javascript file to access a get posts array
- Listing and displaying WooCommerce Shipping Zones in the frontend? [closed]
- Create shortcodes within foreach loop (using array)
- Trigger popup in a php if/else statement
- Populate dropdown with Child Pages based on Parent Page chosen
- Creating own shortcode – echoeing php variable based on JS variable
- Redirect to another page using contact form 7? [closed]
- Get html data with javascript to php array and store to wordpress database
- Calling PHP Titles inside Javascript Markup
- MySQL Query Returns Array () In Shortcode
- using shortcodes inside gravity forms
- Display one random image from Media Library
- Show the subcategory name based on current product
- How to output values from a loop into a javascript array
- Replacing entire tag with shortcode – JavaScript [duplicate]
- make an array in wordpress cusmization api?
- Force ‘permanent’ post cache of shortcode results
- How to get values from wordpress listings and use them in javascript array?
- Set variable in javascript and using in my shortcode
- Is there a better way to output HTML as a shortcode?
- Show Login Errors In WordPress/Elementor (Code “works”, but breaks site)
- Sorting list of sites from multisite network using wp_get_sites
- How to create shortcodes that pull custom field data from general settings
- Where exactly do I write define( ‘WP_DEBUG’, true ) in wp-config file
- the_title() & the_content() are retrieving Post details inside a Page, after calling a shortcode
- Wrap each shortcode in array to div
- Template part inside shortcode, unexpected reult
- Slide in Panel WordPress Post
- Shortcode Inside Class Not Working
- Parsing php string in jquery [closed]
- Pass a php string to a javascript variable
- Shortcode API: How to get name that matched shortcode RegEx?
- Using shipped version of jquery
- Bridging TinyMCE js and WordPress PHP?
- Trying to implement Ajax comments in WordPress, getting WP error
- class click counter save number
- How to properly loop through these external URLs to get them into the sitemap using this hook
- Call global variable array() in woocommerce child/template
- Get value from shortcode to do something
- JS file work only in index page
- How to change redirection route to a php page for making it only accessible by logged-in members?
- Integrating PHP into Javascript to display map markers with Google API – problem with wp_localize
- Custom shortcode outputs plain text instead of HTML at top of post
- How does wp_enqueue_scripts work?
- WordPress Scripts Being Loaded in Footer
- Shortcode returns values in the wrong order
- Embedding PHP in shortcode $content
- Add Codepen animation as Preloader to WordPress
- ::before on open/close function [closed]
- How to use if statement in an array? [closed]
- Is There A Way To Make Theme Files Accept Shortcodes?
- Get categories names as an array to use it in theme settings
- Unable to process php via shortcode
- calling a custom field value inside functions.php
- Foreach loop inside an array_merge
- Cant display an image via PHP in wordpress
- Getting posts to exclude from array
- how to make an array of post id’s in is_single
- array_rand not working correctly?
- Dynamically adding filters
- help with custom shortcode that stopped working
- Send an e-mail on address with the link with disliked post
- How to extend SelectControl with data from my theme
- Order users by random not working?
- Show next image in array if page is revisited by same logged user
- Fetch Data from an external MSSQL Database in a Managed WP hosting
- Using Google Analytics in an enqueued JS file
- How can I show how much water got saved on this order (making use of the number of items bought) on a thank-you-page?
- How do I disable cache for a certain page?
- How To Get HTML Eelement From Another Page
- How can I edit the final HTML structure of the whole web page
- I am having an issue with this shortcode plugin.. Warning: Illegal string offset ‘title’
- Conditional Banners
- Update $wpdb query with AJAX
- AJAX to add to cart multiple products woocommerce
- How can I create a shortcode from an html and php code written together
- Filter portforlio with librairie isotop
- CPT in a shortcode
- How can i get the same ajax result using WP REST API instead of admin-ajax?
- admin-ajax.php 400 bad request – whats wrong with my code?
- Make sticky post with FacetWP
- Serve cookie free URLs in WordPress without using a CDN
- Custom fields changes the formatting of metabox input
- Where to find the html for WordPress site? [closed]
- php string inside shortcode does not work
- Limit the number of successful logins
- 500 (Internal Server Error) of external php file
- Add title and caption to thumbnail image on mouseover
- Shortcodes (with a space) added to php Sample
- Problems with plugin that fetches data from database with ajax
- Dynamic Gallery
- How can I put a custom field as the link of a button shortcode?
- Problem using explode inside add_shortcode() callback funciton [closed]
- Cannot get custom javascript to execute on page
- Pass a PHP variable (loop-audio.php) to jQuery function (js/script.js)
- Display Current Time using shortcode
- Redirect loop upon installation of my plugin
- How to initialise WP_Query on the basis of a specific meta_value and continue iterating rest?
- Facing Problem While Running WordPress Hook For Archive, Categories, Author, Date Pages Only