brownplt / code.pyret.org

Website for serving Pyret to folks.
Other
24 stars 44 forks source link

upgrade and fix pie chart rendering #519

Closed schanzer closed 3 months ago

schanzer commented 3 months ago

Based on a bug report from a teacher

It turns out that unlike scatter plots, histograms, and all manner of bar charts, the order of SVG pie slices does not follow the order of the rows in the table! This PR makes the following changes:

schanzer commented 3 months ago

Thanks, @sorawee ! I've pushed fixes for these.

schanzer commented 3 months ago

@blerner I've added tests (all of which pass when run in the browser), but I wasn't able to run npm run test from my command line due to missing packages.

blerner commented 3 months ago

I'm going to assume that this PR does what @schanzer needs it to do, and that the remaining branch CI failure is because this branch doesn't yet have @jpolitz 's fix from #horizon.