javascript - How to solve the wrong categories for xAxis in highcharts? -
i have problem in making categories xaxis. example of problem:
i have marked problem on picture above. why "2" come chart b? chart seems working fine, chart b doesnt.
i have table this:
faculty
department
major
for information, blue bar lessthan25 , black bar between25to29.
i have controller :
i have index this:
i inspect element, , result javascript this:
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.
highcharts fills in missing value next category array index - in case, "2". need make sure have many categories data points.





Comments
Post a Comment