Statistics

For Developers

Estimated reading: 1 minute 804 views

For Developers

The new myCRED_Chart object has been added to help render charts. When using this object, we render canvas elements where the chart will be rendered, while the actual data is populated under the $mycred_charts global. This global is then fed to Chart.js in the footer of the website. This means that charts will not render if the wp_footer function is used!