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

php - Embed BBCode within itself not working -

three.js - how to load gltf in three JS -

sql server - T-SQL: Access DB objects in same schema without qualifying? -