Displaying excess number of columns in heat map in highcharts

746 views Asked by At

I'm using highcharts heat map in my project. I have 12 rows and 7 columns in my heat map. When i pass the data hard coded the chart is displaying as required with 12x7 matrix. Now i need to pass the data in a json object from my database. When i9 do so, it is showing me 12x12 matrix with last five columns being empty and space being wasted. How can i remove these extra five columns. The chart is expecting some data to be passed ,where it is not,and I have not given any labels so it is displaying it as numbers after 7th column as 8 9 10 11 12. Can someone help?

1

There are 1 answers

0
Jim Nathlich On

(edit after review). Put fake data in the 'categories'. This will shrink the matrix back to 12x7, and you can suppress the display of the fake category data.