Skip to content

Visible bars sum approach? #561

Closed Answered by PaTara43
PaTara43 asked this question in Q&A
May 12, 2025 · 2 comments · 2 replies
Discussion options

You must be logged in to vote

Okay this turn out to be waaaaaaay easier

For the entity I'm interested in:

fn: $ex vars.sum = ys.reduce((acc, val) => acc + val, 0);

And then for the annotation text

  annotations:
    - x: 1
      xref: paper
      "y": 1
      yref: paper
      showarrow: false
      text: $ex vars.sum
sum.mp4

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@dbuezas
Comment options

@PaTara43
Comment options

Answer selected by PaTara43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants