refactor(client): horizontal-graph size calculation cleanup.

* Calculate the height of the graph based on the number of items.
* Calculate the width of the graph based on the size of the container.