materialsproject / crystaltoolkit

Crystal Toolkit is a framework for building web apps for materials science and is currently powering the new Materials Project website.
https://docs.crystaltoolkit.org
Other
155 stars 59 forks source link

`PeriodicTable` component #4

Open mkhorton opened 6 years ago

mkhorton commented 6 years ago

A UI component that renders a periodic table similar to pymatgen.util.plotting.periodic_table_heatmap, but also allows interaction by selecting multiple elements.

mkhorton commented 2 years ago

This should use our PeriodicTable React component: https://materialsproject.github.io/mp-react-components/?path=/story/data-entry-periodictable--basic

There is support in this component for displaying a heat map, but this is not currently exposed via an available prop so a change in mp-react-components will be necessary.

The dcc.Store for this component can just be a dictionary mapping element to a value. To be cleaner, a new PeriodicTable class in pymatgen may be useful to act as a container.