Dynamic height based on number of data points

Change-Id: I06cd7dbe485f17b19d26513b5ed39e21b7dfaf90