Hey everyone!
With the Labour Day holidays coming up, we’d like to let you know about our upcoming working hours:
Thursday, May 1st: Our team will be off during Labour Day.
Friday, May 2nd: We'll also be off for an extended holiday break.
We’ll be back on Monday, May 5th, ready to respond to all messages received during this time.
In the meantime, if you need help, feel free to:
-
Use the support widget on the bottom right of our websites (Amelia and wpDataTables) — our AI-powered assistant is available 24/7 and can help with many common questions.
-
Visit our documentation, articles, or YouTube channels for quick answers and step-by-step guides.
https://www.youtube.com/@AmeliaWordPressBookingPlugin/videos
https://www.youtube.com/@wpDataTables/videos
Thank you for being so understanding, and we hope you enjoy the long weekend!
This is how the chart looks by default. The client would like to only show ever other date label, basically, skipping every other label.
I am close to getting this working but the documentation doesnt seem to mention how the value placeholders work. This is the snippet i am using:
<script type="text/javascript">
jQuery(window).on('load',function(){
if( typeof wpDataChartsCallbacks == 'undefined' ){ wpDataChartsCallbacks = {}; }
wpDataChartsCallbacks[1] = function(obj){
obj.options.xAxis = {
labels: {
step: 1
}
}
}
});
</script>
As you can see here, this DOES skip every other label, but it also changes them from dates to just numbers.
Im guessing it needs to be something like this:
obj.options.xAxis = {
labels: {
step: 1,
format: '{this.x}'
}
}
But I cant get it working
Hello Ryan
Thank you for your purchase.
Can you show me the table that's used for making this chart, and explain which chart engine you're using, and which columns are included in it, so I can try this locally?
I can't guarantee that I will make it work, but I can try. Using wpDataChart and wpDataTable callbacks require coding skills, and it is not included in the provided support for the plugin. I, too, would need to explore the API and see what needs to be done to convert the values back to dates, so if it takes me more than 20 minutes, I won't be able to do it.
Thank you for your understanding.
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
Thank you, Ryan.
Unfortunately, it would take some time to explore this, and as I mentioned before I can't provide thorough assistance on callbacks, since they're not included in the provided support for the plugin.
I did find some examples on stack overflow, though, so please take a look at them:
https://stackoverflow.com/questions/8674489/how-to-show-only-specific-x-axis-values-on-datetime-axis-in-highcharts/36796548
https://stackoverflow.com/questions/60487429/show-only-first-and-last-xaxis-label-in-highcharts
https://stackoverflow.com/questions/54866489/highcharts-show-only-particular-ticks-when-large-number-of-x-axis-ticks
https://stackoverflow.com/questions/8674489/how-to-show-only-specific-x-axis-values-on-datetime-axis-in-highcharts
https://stackoverflow.com/questions/48871588/how-can-i-show-only-one-x-axis-in-synchronous-chart-highchart
HighCharts has its own logic for changing data on axes, depending on the data type included in the chart, so it's not that easy to modify them.
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