Skip to content

Latest commit

 

History

History
11 lines (6 loc) · 869 Bytes

plot-libraries.md

File metadata and controls

11 lines (6 loc) · 869 Bytes

Plot libraries

There are two plot libraries that we use in CoV-Spectrum: Recharts and Plotly. If you are not sure which one to use, use Recharts. It is easier to get custom features and match our application's style using Recharts. Plotly is very powerful and, e.g., supports zooming. However, it is difficult to customize and make it look very good.

Recharts

We try to keep the plotting code separate from our data loading and transformation code. Recharts plotting code generally goes in src/widgets (see ./folders.md). You will find some useful example code in there.

Plotly

You should use the wrapper component from src/components/Plot.ts instead of importing the equivalent component from the Plotly library directly.