You can remove specific entries from the legend by setting the parameters of the series.<series index>.visibleInLegend to false for the series that you want to hide from the legend. As an example, if the quantity / second series is the 4th, 5th, and 6th series of data in your data set, you can create a series parameter like this to hide them:
series: { 3: { visibleInLegend: false }, 4: { visibleInLegend: false }, 5: { visibleInLegend: false } }
The series index only counts data columns, not DataTable columns, so ignore the domain column and any special role columns that you use when defining the series index.
source share