MatterViz

matterviz is a toolkit for building interactive web UIs for materials science: periodic tables, 3d crystal structures (and molecules), Bohr atoms, nuclei, heatmaps, scatter plots. Check out some of the examples in the navigation bar above.

Structure Viewers

mp-756175

No structure provided

Li4Fe3Mn1(PO4)4.cif

No structure provided

Try dragging files onto the structure viewers

Either from the set of example files or drag a local extXYZ, POSCAR, CIF, YAML, pymatgen JSON files, or compressed versions of these files onto either structure viewer. You can also edit the structure content in the textarea below. Changes will automatically update both 3D viewers.

The 3d structure viewer is built on the declarative three.js wrapper threlte. It gets Svelte-compiled for great performance (even on supercells with 100+ atoms), is split up into Bond, Lattice, Scene and Site components for easy extensibility. You can pass various click, drag and touch event handlers for rich interactivity as well as inject custom HTML into tooltips using child components. These show Materials Project structure for mp-756175 and a lithium iron manganese phosphate structure from a CIF file.

Periodic Table

Element Category Colors

Element Tiles

Font Sizes

Tooltip

Multi-value Heatmap Examples

The periodic table now supports multiple values per element with different visual layouts:

2-fold Split (Diagonal)

Each element shows two values as diagonal triangles: top-left = atomic mass, bottom-right = density.

H 1.010.0000899
He 40.000179
Li 6.940.534
Be 9.011.85
B 10.82.08
C 121.82
N 140.00125
O 160.00143
F 190.0017
Ne 20.20.0009
Na 230.968
Mg 24.31.74
Al 272.7
Si 28.12.33
P 311.82
S 32.12.07
Cl 35.50.0032
Ar 39.90.00178
K 39.10.862
Ca 40.11.55
Sc 452.98
Ti 47.94.51
V 50.96
Cr 527.19
Mn 54.97.21
Fe 55.87.87
Co 58.98.9
Ni 58.78.91
Cu 63.58.96
Zn 65.47.14
Ga 69.75.91
Ge 72.65.32
As 74.95.73
Se 794.81
Br 79.93.1
Kr 83.80.00375
Rb 85.51.53
Sr 87.62.64
Y 88.94.47
Zr 91.26.52
Nb 92.98.57
Mo 9610.3
Tc 9811
Ru 10112.4
Rh 10312.4
Pd 10612
Ag 10810.5
Cd 1128.65
In 1157.31
Sn 1197.37
Sb 1226.7
Te 1286.24
I 1274.93
Xe 1310.00589
Cs 1331.93
Ba 1373.51
La 1396.16
Ce 1406.77
Pr 1416.77
Nd 1447.01
Pm 1457.26
Sm 1507.52
Eu 1525.26
Gd 1577.9
Tb 1598.23
Dy 1638.54
Ho 1658.79
Er 1679.07
Tm 1699.32
Yb 1736.9
Lu 1759.84
Hf 17813.3
Ta 18116.7
W 18419.3
Re 18621
Os 19022.6
Ir 19222.6
Pt 19521.4
Au 19719.3
Hg 20113.5
Tl 20411.8
Pb 20711.3
Bi 2099.78
Po 2099.2
At 2106.35
Rn 2220.00973
Fr 2231.87
Ra 2265.5
Ac 22710
Th 23211.7
Pa 23115.4
U 23819.1
Np 23720.4
Pu 24419.8
Am 24312
Cm 24713.5
Bk 24714.8
Cf 25115.1
Es 2528.84
Fm 2579.7
Md 25810.3
No 2599.9
Lr 26614.4
Rf 26723.2
Db 26829.3
Sg 26935
Bh 27037.1
Hs 26940.7
Mt 27837.4
Ds 28134.8
Rg 28228.7
Cn 28523.7
Nh 28616
Fl 28914
Mc 28913.5
Lv 29312.9
Ts 2947.17
Og 2944.95
57-71 La-Lu Lanthanides
89-103 Ac-Lr Actinides

4-fold Split

Each element shows four values as quadrants: top-left = atomic radius, top-right = electronegativity * 100, bottom-left = covalent radius, bottom-right = |electron affinity|.

H 0.792200.3172.8
He 0.490.2848
Li 2.1981.2859.6
Be 1.41570.9648
B 1.22040.8427
C 0.912550.76122
N 0.753040.716.8
O 0.653440.66141
F 0.573980.57328
Ne 0.510.58116
Na 2.2931.6652.9
Mg 1.71311.4140
Al 1.81611.2141.8
Si 1.51901.11134
P 1.22191.0772
S 1.12581.05200
Cl 0.973161.02349
Ar 0.881.0696
K 2.8822.0348.4
Ca 2.21001.762.37
Sc 2.11361.718
Ti 21541.67.29
V 1.91631.5350.9
Cr 1.91661.3965.2
Mn 1.81551.3950
Fe 1.71831.3214.8
Co 1.71881.2663.9
Ni 1.61911.24112
Cu 1.61901.32119
Zn 1.51651.2258
Ga 1.81811.2241
Ge 1.52011.2119
As 1.32181.1977.7
Se 1.22551.2195
Br 1.12961.2325
Kr 11.1696
Rb 3822.246.9
Sr 2.5951.955.02
Y 2.31221.929.6
Zr 2.21331.7541.8
Nb 2.11601.6488.5
Mo 22161.5472.1
Tc 21901.4753
Ru 1.92201.46101
Rh 1.82281.42110
Pd 1.82201.3954.2
Ag 1.81931.45126
Cd 1.71691.4468
In 21781.4237
Sn 1.71961.39107
Sb 1.52051.39101
Te 1.42101.38190
I 1.32661.39295
Xe 1.21.477
Cs 3.3792.4445.5
Ba 2.8892.1514
La 2.71102.0753
Ce 2.71122.0455
Pr 2.71132.0393
Nd 2.61142.01185
Pm 2.61131.9912.4
Sm 2.61171.9815.6
Eu 2.61201.9811.2
Gd 2.51201.9613.2
Tb 2.51201.94112
Dy 2.51221.9234
Ho 2.51231.9232.6
Er 2.51241.8930.1
Tm 2.41251.999
Yb 2.41101.871.93
Lu 2.31271.8733.4
Hf 2.21301.7517.2
Ta 2.11501.731
W 22361.6278.8
Re 21901.515.83
Os 1.92201.44104
Ir 1.92201.41151
Pt 1.82281.36205
Au 1.82541.36223
Hg 1.82001.3248
Tl 2.12041.4536.4
Pb 1.82331.4634.4
Bi 1.62021.4890.9
Po 1.52001.4136
At 1.42201.5233
Rn 1.31.568
Fr 702.646.9
Ra 902.219.65
Ac 1102.1533.8
Th 1302.06113
Pa 150253
U 1381.9650.9
Np 1361.945.9
Pu 1281.8748.3
Am 1301.89.93
Cm 1301.6927.2
Bk 130165
Cf 13097.3
Es 13028.6
Fm 13034
Md 13093.9
No 130223
Lr 30
Rf
Db
Sg
Bh
Hs
Mt
Ds
Rg 151
Cn
Nh 66.6
Fl
Mc 35.3
Lv 74.9
Ts 166
Og 5.4
57-71 La-Lu Lanthanides
89-103 Ac-Lr Actinides

Missing Color Demo

The missing_color prop is used to control how missing values in heatmap data are displayed.