How to plot multiple data series for same pio

Hey Cam,

How are the charts generated from the yaml files on the frontend?

Specifically, how must I format the SQL table such that we can get multiple data series on the chart.

Is it ideal to have a separate column for each data series or to have one numeric column and another column containing series info (ie. channel # like you have for OD).

In my use case the data series are all from a single pioreactor and not multiple reactors. Basically have multiple of the same sensor reading in parallel and want to plot their individual output for comparison.

1 Like

Hi @rafik.n, it is multiple data series per pioreactor? That’s harder to do (the OD readings one is an exception, and hardcoded that way).

Generally, you want the table to be structured with columns timestamp, experiment, pioreactor_unit, and some numeric column.

A simple hack might be to use the pioreactor_unit column polymorphically - just put your different sensor “names” in there. Does that make sense?

Great hack recommendation. Got it working.