Skip to content

Pie show incorrect value (in scientific format) when hovered over #5122

Closed
@chiehrosswang

Description

@chiehrosswang

I am working with some large numbers in pie charts. I came across some incorrect values in scientific format. The value of L1 should be 3.31E+10 but it's showing 3.31E+1. Same error is seen in L2.

image

Below is a snip of the code and here is a working example: http://jsfiddle.net/3u05bo89/12/.

var data = [{
  values: [33103474584, 58115093734, 123036969165],
  labels: ['L1', 'L2', 'L3'],
  type: 'pie',
  hoverinfo: 'label+value+percent'
}];

var data = [{
  values: [33103474584, 58115093734, 123036969165],
  labels: ['L1', 'L2', 'L3'],
  type: 'pie',
  hoverinfo: 'label+value+percent'
}];

var layout = {
  height: 400,
  width: 400,
	title:"Test Piechart"
};

Plotly.newPlot('myDiv1', data, layout);

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