We're Moving to a New Support Platform – Starting June 1st!
We’re excited to let you know that starting June 1st, we’ll be transitioning to a new support system that will be available directly on our product websites – Amelia, wpDataTables, and Report Builder. In fact, the new support platform is already live for Amelia and wpDataTables, and we encourage you to reach out to us there.
You'll always be able to reach us through a widget in the bottom right corner of each website, where you can ask questions, report issues, or simply get assistance.
While we still do not offer live support, a new advanced, AI-powered assistant, trained on our documentation, use cases, and real conversations with our team, is there to help with basic to intermediate questions in no time.
We're doing our best to make this transition smooth and hassle-free. After June 1st, this current support website will redirect you to the new "Contact Us" pages on our product sites.
Thanks for your continued support and trust – we’re excited to bring you an even better support experience!
I am having real difficulty applying custom colors to pie segments.
I have followed this: https://wpdatatables.com/faqmd/change-color-pie-chartchart-js/
However it does not seem to work.
Also I have a total of 6 pie charts, how would I add this array to the code?
The above 'related url' relates to the pies on a page - the attachment shows the code that has been added to settings in the plugin.
Thank you
Hello Philip
Thank you for reaching out to us.
The wpDataChart callbacks shouldn't be added in the Settings/Custom JS and CSS section, but instead on the page where the chart is.
Depending on what you're using (Gutenberg blocks, or some page builder), adding the CSS or JS can be done in a few different ways.
If you need help with adding custom JS to the page, please take a look at this article.
You would need to add individual JS for each chart.
Kind Regards,
Aleksandar Vuković
[email protected]
Rate my support
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables
OK - I'm using Elementor
What about setting for the ID in the code, how should that look for multiple PIES?
Hi again Philip
You need to add one callback below the other in JS, you can't use one callback for multiple charts out-of-the-box.
There can be workarounds, but we haven't tested everything yet. We plan to add solutions in the future, I can't say an ETA though.
For the time being, I can only offer you some examples with custom solutions, I hope they can help.
We have these hooks available :
wpdatatables_filter_google_charts_render_data wpdatatables_filter_highcharts_render_data wpdatatables_filter_chartjs_render_data wpdatatables_filter_apexcharts_render_data
-
This is a custom solution, so we can only give you an example.
This was used to move the "Reset zoom" button of a HighChart, from the right side to the left side of the chart;
We have first used this script only on the page with the chart, i will first show how we did it for one chart on the page :
We place this script text on the same page where your graph is;
we used Gutenberg editor, and used a custom HTML block for it to work-
here is the script text :
( change the ID in square brackets to your chart ID, at the ' wpDataChartsCallbacks[ ] ' part. )
Now, I will show you a custom workaround our developers used to apply this to all the charts.
A solution that should work for all the HighCharts on the plugin; then you wouldn't have to use the callback on the page anymore.
For this to work, you have to edit the code in a couple of PHP files.
- The first one is in the path: wp-content/plugins/wpdatatables/source/class.wpdatachart.php
Around line 2211, you will find this :
underneath that, add this hook :
and then, in the functions file of your theme, or child theme; insert this :
- This way, it will be applied to all the HighCharts. You can remove that first callback that we gave you if this is implemented correctly.
- This hook takes three parameters:
The first one is the HighCharts render data which is an array with all the options,
the second one is "chart ID", in case you need it for only some specific charts;
and the last one is the chart object.
Kind Regards,
Aleksandar Vuković
[email protected]
Rate my support
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables