javascript - How to solve the wrong categories for xAxis in highcharts? -


i have problem in making categories xaxis. example of problem:

enter image description here

i have marked problem on picture above. why "2" come chart b? chart seems working fine, chart b doesnt.

i have table this:

faculty

enter image description here

department

enter image description here

major

enter image description here

for information, blue bar lessthan25 , black bar between25to29.

i have controller :

https://pastebin.com/k6p1p7an

i have index this:

https://pastebin.com/27nvtcth

i inspect element, , result javascript this:

https://pastebin.com/ucn0fxag

what may fix problem?

thanks in advance

the "a" categories work because have defined 3 categories, , have 3 data points.

the "b" categories not work properly, because have 3 data points, have defined 2 categories.

enter image description here

highcharts fills in missing value next category array index - in case, "2". need make sure have many categories data points.


Comments

Popular posts from this blog

How to understand 2 main() functions after using uftrace to profile the C++ program? -

c# - Update a combobox from a presenter (MVP) -

How to put a lock and transaction on table using spring 4 or above using jdbcTemplate and annotations like @Transactional? -