The x-axis on my chart is behaving inappropriately: Whenever there is an integer value on the x-axis, the program randomly displays the x-axis values instead of displaying them in an ordinal way. For example, let's say the x-axis contains the integers 1, 2, 3, and 4. On the x-axis, I want it to display in an ordinal way such as "1, 2, 3, 4" but this graph displays it as "3, 1, 2, 4" or some other random combination of the four integers.
Specifically, I'm making a line graph with these two integers:
And yes, I did numerous things to debug the problem:
I ensured both values (x value, y value) are integers
I tried switching the x value and the y value around, but the program still randomly arranges the x-axis even when a whole new set of integers was used!
I used all three rendering engines (Google, chart.js, highcarts) and the x-axis was still randomly arranged
I changed the chart type (i.e. went from a line chart to a scatterplot) and the x-axis was still randomly arranged
How can I get the graph to arrange the x-axis properly?
What's the order of these integers in the table? Can you show me the table as well?
The chart should follow what it sees in the table, so if it always displays 10, 1, 6, 3, 2, it implies that probably the "Number of TCFD disclosures" column displays the data this way. If this is the case, you can go to column settings, and under Sorting tab enable "Use as default sorting column".
If that doesn't help either, please just show me the table, so I can replicate the issue on my end.
Hello,
The x-axis on my chart is behaving inappropriately: Whenever there is an integer value on the x-axis, the program randomly displays the x-axis values instead of displaying them in an ordinal way. For example, let's say the x-axis contains the integers 1, 2, 3, and 4. On the x-axis, I want it to display in an ordinal way such as "1, 2, 3, 4" but this graph displays it as "3, 1, 2, 4" or some other random combination of the four integers.
Specifically, I'm making a line graph with these two integers:
https://ibb.co/TM2Yc5z
But the graph randomly arranges the x-axis instead of displaying the numbers in the proper, ordinal, decreasing-to-increasing way:
https://ibb.co/zGKQnKn
And yes, I did numerous things to debug the problem:
How can I get the graph to arrange the x-axis properly?
Hello Jacob
What's the order of these integers in the table? Can you show me the table as well?
The chart should follow what it sees in the table, so if it always displays 10, 1, 6, 3, 2, it implies that probably the "Number of TCFD disclosures" column displays the data this way. If this is the case, you can go to column settings, and under Sorting tab enable "Use as default sorting column".
If that doesn't help either, please just show me the table, so I can replicate the issue on my end.
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