Since you're using Highcharts, the chart is not showing because you have more than 1000 entries and there is an option in Higcharts API that limits it to 1000 and that is turboThreshold.
What you can do si to add wpdatachart callback where you will increase this limit:
You will need to insert this on the same page where is this chart and also to provide the correct chart id. In our example here, we've added wpDataChartsCallbacks[3] as an example. You will need to replace "3" with the ID of your chart.
For option turboThreshold, we set the value 3000 also as an example, but if you have more data then you will change this option as well.
There's a possibility that this will break on mobile devices, but we don't have a solution for that at the moment.
Using hooks or wpDataTable and wpDataChart callbacks requires a certain level of programming skills and included support refers only to advice, so I can't help you with this.
The Highcharts library does not work if you try to plot more than 1,000 data, in fact in this case the chart becomes empty (see attached image).
How can I solve this? Thank you very much!
Hello Giulio
Since you're using Highcharts, the chart is not showing because you have more than 1000 entries and there is an option in Higcharts API that limits it to 1000 and that is turboThreshold.
What you can do si to add wpdatachart callback where you will increase this limit:
You will need to insert this on the same page where is this chart and also to provide the correct chart id. In our example here, we've added wpDataChartsCallbacks[3] as an example. You will need to replace "3" with the ID of your chart.
For option turboThreshold, we set the value 3000 also as an example, but if you have more data then you will change this option as well.
There's a possibility that this will break on mobile devices, but we don't have a solution for that at the moment.
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 very much, this works!
One more question, is there a code/callback to reverse the order of the data on the x-axis?
original 1, 2, 3----> with code/callback----> 3, 2, 1
You're welcome, Giulio, glad I could help.
I believe there is a callback to reverse the order, but unfortunately, I don't have an example for it.
You would need to explore Google Charts API, Highcharts API, or Chart.js API. Also, my advice would be to browse through stackoverflow.com or jsffidle.net.
Using hooks or wpDataTable and wpDataChart callbacks requires a certain level of programming skills and included support refers only to advice, so I can't help you with this.
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