Does ZingChart support scrolling legends?

Scrolling legends are just one of the many interactive legend features we support. To enable legend scrolling, you need to specify the maximum number of legend items you want shown with the maxItems attribute and to set the legend overflow attribute to 'scroll'. You can style the scroll bar and handle by creating a scroll object and using the bar and scroll objects.

legend: {
  maxItems: 8,
  overflow: 'scroll',
scroll: {
bar: {
//applicable styling attributes
handle: {
//applicable styling attributes
}, ... }

See the below chart with scrolling legend.

Refer to the Legend Tutorial for information on legends generally. Refer to the Legend Scroll JSON page for a full list of scrolling-related objects and attributes.

Have more questions? Submit a request


Please sign in to leave a comment.