leeoniya / leeoniya/uPlot

What is needed to rotate box plots?

Open
#783 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

question
Dominant language
JavaScript
Stars
10.5k
Forks
463
PR merge metrics
No merged PRs in 30d

Description

Based on

I assumed that I could possibly try to flip the x and y axis for box plots (https://leeoniya.github.io/uPlot/demos/box-whisker.html).
Though, a quick hack doesn't seem to do the trick.

Looking a bit more at the code of the demo, it seems like I would also need to flip the logic in the drawing routines.

Though, the interactive bits of the plots seem all very "column"-oriented.
Should I be aware of any implicit assumptions that box plots are "columns"?
Or should rotating/flipping axis "just work"?

At the end, I'd like reach a point where I have box plots like this:

  • Inline boxplot
  • Executor comparison
  • Executor comparison 2

I'd like to flip the axis mostly to make long performance reports more compact horizontally, to get loads of benchmarks on a relatively compact page. Full example: https://rebench.stefan-marr.de/TruffleSOM/compare/b953d3244f41878a1730350618a22afd595d5ba2..65141f9d66669a21cce28a5141f01b07b0f8a93f (this is currently generated with R+ggplot)

The other bit that I'd still need to figure out is how to draw the data points on top of the box, which is quite useful to me. But that's for another time.

Thanks!

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by comparing the box-whisker demo with the scales-direction and multi-bars demos linked in the issue, focusing on the drawing and interactive logic. Determine which assumptions are column-oriented and whether axis flipping can support the requested horizontal box plots. Done means rotated box plots render correctly for compact performance reports; overlaying data points is explicitly deferred.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
data-visualization
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.