I am trying to: Create shortcodes for expressing quantitative data in a simple pie chart using my charts.js i.e. ... No. of Views, media calls, parent posts, child posts or other stored values by user ID. I have a charts and graphs plugin and theme also provides optional charts.js. Just need to call specific data counts from from a shortcode to my frontend interface. Thanks.
Maybe I'm not making my application clear. So you're saying I can't pass quantitative values such as number of page views OR number of child post to a parent into a View or Content Template?
Views, does wrap everything what you output in the Views Loop, in a default, native, HTML wrapper.
This was explained in the Ticket I posted above, along with the reasons why we do it, and how you can Customize the output at your own risk.
You can of course create a ShortCode with a Custom Function that displays or returns anything you want, as long it is available in your DataBase.
But Views, or Toolset ShortCodes, are here to display Data, or to be used in Conditional evaluations, but you will not be able to pass a entire View, to populate values of other applications.
(not as long you use the native and intended way of using Views)
You might, if you need help with this, contact a certified partner to receive the help with the Custom Code you would need.
At this point I would suggest you consider contacting one of our certified partners from this link: https://toolset.com/consultant/
You will get the custom assistance you need to get on with your project.
Let me know if I can help you further with Toolset related issues or doubts.