Skip to content

Tickmark precision with percentage formatting #3814

Closed
@jonmmease

Description

@jonmmease

Originally reported in plotly/plotly.py#1537.

When the axis tickformat is set to 'p' for percentage, the ticks are often displayed with an unexpectedly large amount of precision.

CodePen: https://codepen.io/jonmmease/pen/vMMNXJ?editors=1010

var fig = {
  "data": [
    {
      "type": "scatter",
      "y": [
        0,
        1.0
      ]
    }
  ],
  "layout": {
    "yaxis": {
      "tickformat": "p",
      "automargin": true,
    }
  }
}


Plotly.newPlot('myDiv', fig, {showSendToCloud: true});

newplot

Metadata

Metadata

Assignees

Labels

bugsomething broken

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions