Skip to content

hoverformat/tickformat overwrites separators #1264

Closed
@ghost

Description

It's not possible to set the separators of thounds and comma when also setting the tickformat or hoverformat.

Settings:

data = [{x:[0],y[2323.45]]
layout={
  separators: ',.',
  yaxis: {
    hoverformat: ',.2r'
  }
}

Expected output:
When hover, following number should be printed: "2.323,45".

Example: Codepen

I want to reformat ticks and hover to not show "k" as thounds, but also keep the localized thousand separator and comma.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugsomething broken

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions