Skip to content

Per-axis separators attribute #1842

Closed
Closed
@ndabAP

Description

@ndabAP
var trace = {
  x: ['2000-01-30', '2000-01-31'],
  y: [1.5, 1.7],
  type: 'scatter' 
};

var data = [trace];

var layout = {
  xaxis: {
    type: 'date',
  },
  yaxis: {
    tickformat: ',.'
  },
};

Plotly.plot('myDiv', data, layout);

Last two axis labels are wrong and the comma format isn't applied. The problem doesn't occur when setting layout.separators = ',.'.

https://codepen.io/anon/pen/LLmWpm

Metadata

Metadata

Assignees

No one assigned

    Labels

    communitycommunity contributionfeaturesomething new

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions