[BUG]; Changing `layout.ternary.sum` via `relayout` makes `scatterternary` data stale · Issue #8127 · plotly/plotly.js · GitHub
Skip to content

[BUG]; Changing layout.ternary.sum via relayout makes scatterternary data stale #8127

Open

Description

@Lexachoc

Description

Changing layout.ternary.sum with Plotly.relayout does not recalculate scatterternary data.

But scatterternary/calc.js depends on ternary.sum both to infer a missing component and to normalize a, b, and c. However, layout.ternary.sum currently has editType: 'plot', so changing it redraws the subplot without recalculating the trace.

For example, with:

a: [0.2],
b: [0.3]

and the default ternary.sum: 1, c is inferred as 0.5.

After:

Plotly.relayout(gd, {
  'ternary.sum': 100
});

the expected inferred value is 99.5, but the existing calcdata remains based on c = 0.5.

Codepen

https://codepen.io/Lexachoc/pen/EaWEpLx

Expected

Changing ternary.sum should recalculate ternary trace data.

Activity

  1. camdecoster commented on Oct 19, 2026

    @camdecoster
    Contributor

    Thanks for the report! We'll review the PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2considered for next cyclebugsomething brokensize: 1

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions