petekaner
petekaner

Reputation: 8901

How to make a interactive legend with chartjs

In the examples of ChartJS there's an interactive legend wich allows you to hide/show a result set in the graph, i.e. http://www.chartjs.org/docs/#line-chart

I've been looking through the documentation but the only references to the documentation I found are about creating an attached legend to the graph, not this kind.

Is there an option to show this kind of legend that I'm missing?

Upvotes: 0

Views: 450

Answers (1)

tektiv
tektiv

Reputation: 14187

As stated in the Chart.js Github project, Release Version 2.0.0 :

Major new features

• Charts that combine visual types such as bars and lines
• Chart titles
Built-in legends that are interactive by default
... and so on ...

You must be in version 1.X.X or something, so you cannot have it.

Upvotes: 1

Related Questions