plotly / plotly/plotly.js

Scatterpolargl texttemplate displays incorrectly

Open
#6,804 7 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug good for agent P3
Dominant language
JavaScript
Stars
18.3k
Forks
2k
Avg merge
2d 12h
Merged PRs (30d)
28

Description

Scatterpolargl texttemplate displays incorrectly.

var data = [{
    type: "scatterpolargl",
    mode: "text+lines+markers",
    r: [1, 2, 3],
    theta: [50, 100, 200],
    marker: {symbol: "square"},
    text:['1.053', '2', '3'],
    textposition: 'top left',
    texttemplate: "<b>%{text:$.2f}</b>",
  }]
var layout =  {
    polar: {
      domain: {
        x: [0, 1],
        y: [0, 1]
      },
      radialaxis: {
        range: [1, 4]
      },
      angularaxis: {
        thetaunit: "radians"
      }
    },
    showlegend: false
  }
Plotly.newPlot('myDiv', data, layout);

https://codepen.io/oqykitsp-the-solid/pen/bGzxqXW
Снимок экрана 2023-11-29 131421

Contributor guide

Open the contributing guide

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 with the supplied CodePen reproduction and inspect the scatterpolargl texttemplate rendering path in plotly.js. Compare its displayed labels with the expected formatting from the example, then add or update a focused regression test and verify the reproduction behaves correctly.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
data-visualization
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.