FINAL DAYS FOR SUPPORT ON THIS PLATFORM
As mentioned through banners and newsletters, starting Sunday (June 1st), we're transitioning to a new support system that will be available through your store accounts (for premium/paid users) or directly on our product websites – Amelia, wpDataTables, and Report Builder (for pre-purchase questions) through a support widget in the bottom right corner.
Starting June 1st, you’ll no longer be able to reply to existing tickets or open new ones on this platform. Instead, please use the "Submit a Ticket" option, which will redirect you to the right page where you can easily reach out to us.
Thanks for your continued support and trust – we’re excited to bring you an even better support experience!
I am attempting to change the color of the data labels on the Highcharts donut chart. However, none of the Highcharts documentation nor wpDataTables documentation list how to do this.
Specifically, I just want all of the datalabels to be black text. But, some of them are white and one (overlapping a yellow portion of the chart) shows as black.
Note that setting colors in the datalabels object does not alter the colors at all. I am going off of these examples:
https://jsfiddle.net/gh/get/library/pure/highcharts/highcharts/tree/master/samples/highcharts/plotoptions/series-datalabels-color/
https://jsfiddle.net/gh/get/library/pure/highcharts/highcharts/tree/master/samples/highcharts/css/series-datalabels
Hello mahmood
Thank you for your purchase.
That is default behavior of charts engine, but if you need some custom solution you can check in our documentation about wpDataCharts callbacks.
You can see how you can remove data labels and add a legend on this page in our FAQ section, for example.
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
Hi Aleksandar
I faced the problem too. In the previous version (before 3.4) the callbacks for the charts worked well. Now they don't.
I saw the same issues in your examples in your documentation.
BR
Michael
The right way to do this is using "color: black" in the dataLabels object.
jQuery(window).on('load',function(){
if( typeof wpDataChartsCallbacks == 'undefined' ){ wpDataChartsCallbacks = {}; }
wpDataChartsCallbacks[1] = function(obj){
obj.options.plotOptions.pie = {
colors: [
'#50B432',
'#09a94e',
'#fdff00',
'#e74c3c'
],
dataLabels: {
format: '{point.percentage:.1f} %',
style: {
fontSize: '1.5em'
},
distance: -50,
color: 'black',
}
}
}
});
Hello again mahmood and Michael
wpDataTables v3.4.1 has issues with callbacks.
Please replace the files in these locations:
wp-content/plugins/wpdatatables/assets/js/wpdatatables/wdt.chartsRender.js
wp-content/plugins/wpdatatables/assets/js/wpdatatables/wdt.chartsRender.min.js
With the files attached to my response. Then delete cache from your website and browser, and the callbacks that worked previously will work again.
Sorry for the inconvenience.
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
Honestly my frustration has reached its limit
Hello Eliana
I'm really sorry to hear about your frustration. Modifying this would only be possible by applying wpDataCharts callbacks, which require a certain level of programming skills. The included support doesn't cover writing custom code, so you would need to change the look of the letters through trial and error.
I can't find your email in our database, and support for something like this cannot be offered for wpDataTables Lite, even if our developers had time to play around with this.
Something similar is covered in this stack overflow thread. Removing the stroke may not be necessary, since it's already black - on a black background, you only need to change the color of the label, as shown here.
I just managed to make our FAQ example (Highcharts) look like this:
And the callback used here (modified, not the one you see on the FAQ page) is this:
The background was changed with custom CSS directly on the page (originally it's white), but the look of the chart you see in the screenshot above is configured with the callback you see. wpDataChartsCallbacks[15] refers to the [wpDataChart id=15], so you should only change that. A simplified callback would most likely be (but I haven't tested this):
I hope this helps.
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