Show legend less and more on click of button

providing the functionality to add button in legend (view More or view less) on click of this button like below scenario
View More button click show all the legend and view less click show only first 10 legend other should be visibility false. When click on view more show the other legends.

Hey @Rupesh welcome o the forums.

Is that is question or did you create this functionality ?