What is max-items?
Problem:
What is max-items?
Solution:
'max-items' sets the maximum number of items displayed on a scale. If your requirement is to show not more than 5 labels on the y-axis, then you're going to use maxItems on scaleY as we've done in this demo.