As previously announced via banners and our newsletters, support is no longer available through this platform.
For easier navigation, you can still click on "Submit a Ticket" here, choose the appropriate category, and you'll be redirected to the correct support channel for your plugin.
You can still access your previous tickets and browse public tickets, but please note that responding to tickets is no longer possible.
Paid customers: Please log in to your store account for support.
Pre-purchase questions: Use the support widget in the bottom-right corner of our websites:
https://wpamelia.com
https://wpdatatables.com
https://wpreportbuilder.com
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