reactjs - Control multiple charts with one legend react-chartjs2 -


i'm using react-chartjs2 , chart.js display datasets web application i'm building. user going have option of selecting how many charts view different items. each item have own chart, fields/labels datasets same each item. being case want user able hide lines different charts using 1 single legend. don't want display legend each chart gets generated, have 1 @ top.

i have general idea on how this. issue each chart own react component. i'm trying access other charts in 1 of components , iterate through each instance of charts , modify data way. idea on how can done?


Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -