Hi Chris, Used the code and it works very well, thank you. Is there a way to display the values too inside the boxes? Another question: Before passing the dataset to sgrender if the dataset is sorted by X Y then the display changes to left upper triangle, however certain boxes in below triangle too gets populated, Is there a way to fix it.