simularium / binding-sim-edu

Other
0 stars 0 forks source link

sort values to add line to plot #80

Closed meganrm closed 5 months ago

meganrm commented 5 months ago

Problem

Estimated review size: small

I thought it would be helpful to connect the values on the Equilibrium concentration chart with a line, but in order to do that they have to be sorted.

Solution

I add the new values to the array in sorted order, and then render a line between the dots. Consulted with @lynwilhelm about the style

Type of change

Please delete options that are not relevant.

Steps to Verify:

  1. bun dev
  2. control + option + 1 to open admin UI and crank the time step
  3. record some equilibrium values

Screenshots (optional):

Screenshot 2024-05-01 at 4 28 27 PM