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

javascript - Confirm a form & display message if form is valid with JQuery -

Retrieving ETA (estimated time of arrival) with Google Distance Matrix API and public transit as transport mode -

ionic framework - Meteor - Error: Failed to execute 'insertBefore' on 'Node' -